Yes, they evolved later (generally under non-mammalian island biogeographies which produced evolutionary pressures which meant that being large and foraging nocturnally had benefit over retaining flight).
This happens all the time -- imagine the evolutionary pressures on proto-cetaceans. Now imagine writing a comment discounting the benefits of land-dwelling because some paths returned to the sea.