necessity
Noun
B1 – Intermediate
Something that is absolutely needed, or the state of being required.
"A reliable car is a necessity for anyone living far from public transportation."
"Out of necessity" is a common phrase meaning that something was done because it had to be, not by choice.