Cell compartmentalization and its origins