The transition from independent molecular entities to cellular structures with integrated behaviors was a crucial aspect of the origin of life. We show that simple physical principles can mediate a coordinated interaction between genome and compartment boundary, independent of any genomic functions beyond self-replication. RNA, encapsulated in fatty acid vesicles, exerts an osmotic pressure on the vesicle membrane that drives the uptake of additional membrane components, leading to membrane growth at the expense of relaxed vesicles, which shrink. Thus, more efficient RNA replication could cause faster cell growth, leading to the emergence of Darwinian evolution at the cellular level.