What's the meaning of "out of fear"?

Solution 1:

It is the following connotation of out of:

used to show the reason why someone does something:

I took the job out of necessity because we had no money left. You might like to come and see what we're doing out of interest (= because I think you might be interested).

Cambridge Dictionary)