It’s a matter of not disincentivizing victims from cooperating with law enforcement. If there’s the possibility that some information you give the police could be used to prosecute you in the future, that could deter people from going to the police or seeking justice in the first place.
In terms of DNA specifically, it’s kind of a weird power play to say “if you want us to convict the person who raped you, we’ll have to put your DNA into our database to make it easier to convict you in the future”.