The Galaxy class starship was designed with the ability to separate the saucer from the stardrive section, so that the “floating city” part of the ship could be left somewhere safe while the rest of the ship galavants off to do something risky. We see this happen precisely once, in the season one episode Arsenal of Freedom. We also see saucer separation deployed for a handful of tactical and or emergency uses (such as against the Borg in The Best of Both Worlds, or to escape the breaching warp core in Generations).
So, this seems like a useful ability to have, and the Enterprise is constantly being sent into dangerous situations. Why not use this ability more frequently?
Galaxy class starships definitely could eject the core, but for whatever reason they couldn’t manage to do so in Generations.