Because the government says it is. Religions say it is as well.
Governments can change their laws and overnight it becomes legal.
Change the laws to change the morals. That's how government works.
Can't change religion though. The 10 Commandments can't be amended
That's where all your conflict comes in..religious belief vs government laws.