There is at least some logic in these things, further than legal issues. Relationships are perfectly ordinary in general life, and if they end you can usually avoid seeing the other half if you want. At work that may not be possible, and can cause genuine problems if two colleagues hate each other because of a break-up.