If something is perfectly smooth and uniform, gravity will keep it that way forever, unable to create any dense clumps, let alone galaxies. This means that, early on, there must have been small seed fluctuations for gravity to amplify, acting like a form of cosmic blueprints that determined where galaxies would form.