means that
urgent needs can compel people to leave familiar surroundings or take risks they would otherwise avoid.
For example, because of necessity, people might take unaccustomed and perhaps dangerous action. This is a situation where “Hunger drives the wolf out of the wood” applies.