Indeed, inflation can do something even better, which I think is its most amazing trick of all: it can create an infinite volume inside a finite volume! Specifically, it can start with something smaller than an atom and create an infinite space inside of it, containing infinitely many galaxies, without affecting the exterior space.