Yeah but murder is written into the law directly and so is theft, not some abstract notion of morality that differs from person to person and culture to culture.
So if paying so sex is made illegal, what happens if you pay your wife for sex? Not sure how this works in other countries, I guess it must be clarified somehow? In the UK it's very common for laws to be vague.