Rationalizing things people wanted to do anyway is actually a major problem with religion. It provides justification and suppresses doubt. Another thing religions do is regulate sexual behavior. If a single Muslim man isn't getting laid, it's because they aren't married yet. If they truly did whatever they wanted, they would get laid out of wedlock, but there is little religious support for that.