True which is why I personally don’t get my morals from the law. I considered everything to be morally neutral to me unless I’m given a legitimate reason is to why a particular thing is morally wrong.
For example I believe pedophilia is morally wrong because a prepubescent child 13 and under does not know the long term social ramifications of having sex with someone. A prepubescent child that is 13 and under can not informly consent to having sex with someone.
But I do believe that most 16 years old do know the long term social ramifications of having sex with someone. They know that if they have unprotected sex they could get a std or get pregnant. Which is why it’s morally okay in my opinion for a 16-year-old to have sex with a 21 year old as long as the 16-year-old is consenting to it and the 21 year old is not authority figure. Because what they’re doing is completely harmless
But in reality the age of consent in most countries is 16 which means that teenagers who are 16 and older can consent to have sex with whoever they want.