Sleeping with coworkers

Why do people say it’s not good to sleep with coworkers...if y’all both keep it lowkey and between y’all two it should be fine right? Who has slept with a coworker, what was your experience? Or would you do it if the opportunity was given to you?