Maybe the word "loyal" is confusing here. I'm not aware of any legal requirement for loyalty. There's a legal prohibition against fraud and such, though.
It is literally called a duty of loyalty in many legal systems. Something you could have easily confirmed with a quick Google search in half the time it took to write your comment.