Actually the fraternization rules are more about command than sex.
Think about it in terms of the business world. If the boss is dating a secretary it matters not a whit how good she is at her job. If she gets a raise or a promotion is is seen as not earned. That is the issue with fraternization.