Guys know they will cheat

Why do some people get into a relationship if they know that they’re going to cheat or know that they can’t stop cheating?