Why sex is forbidden in islam before marriage?

Why sex is forbidden in islam before marriage?