The reason companies care about this so much is more practical than moral. Bosses having sexual/romantic relationships with employees leads to irrational decisions that are bad for the business.