what kind of intelligent life, capable of interstellar travel, has to land their ship on a planet if there's an emergency on the ship

even our race knows that most planets are completely inhospitable, and would design and build a ship knowing there will no nowhere to run to in an emergency