Why is this legal?
It may not be, but when did that ever stop somebody from doing anything?..................
We are in the 'age' of ANYTHING GOES.
It is legal to turn males into females, and vice versa.
It is legal to kill children before (or 'as') they leave the womb.