Why Galaxies Stop Creating Stars