Maison des abeilles solitaires

You find these all over France and Switzerland – maybe Germany too, but I’ve never seen one in Germany. It’s a hotel for solitary bees! Of course, it begs an interesting question: why are there solitary bees?  Were bees originally soloists that then developed an advantage with hives?  Or were wayward bees kicked out of their hives?