It's one of the basic natural laws of videogames: get too many NPCs together in the same place, and they will start forming factions. Whether you're doing quests for them, joining them, fighting them, ...