If they are somehow forced to work together, and have to make compromises, it suddenly works much better. They also benefit and enjoy it.
It doesn't have to be paid work. But it has to be something with a defined structure and some kind of management. Money is a really good motivator for people not to quit on the first frustrating experience.