In my opinion, there is no right or wrong answer. A time will come when they start learning body parts and one child may even start to be embarrassed to bathe with the other. That’s a sign to start separating them.
It also varies according to the sex of your children. Two girls or two boys are more apt to bathe together for a longer period then a boy and a girl, just given curiosity and personal space.