Maslow’s hierarchy is often misunderstood. (But what isn’t? lol)
For example, he himself explains that people can be at less than 100% and move up levels.
Or, they can become so accustomed to not having something that it ceases to be a factor. And of course — how else would you explain prisoners at Auschwitz giving their rations or shoes or coat to someone else? It’s not like their basic needs were being met.
Plus, there’s the study by Wahba and Bridgewell (1976) discounting the hierarchy with some pretty convincing arguments.
If you’re interested in the hierarchy for personal growth, this is a decent read.