Even if it’s “consensual,” it’s highly unprofessional, and makes witnesses uncomfortable. It also creates an atmosphere that makes other women wonder if they have to be sex kittens to work there. Hence, a hostile work environment.