> At the very least your parents need to tolerate you, because you depend on them for living during your early years. So early on it is a simple survival necessity.
Yep, and even a slight degradation of that trust that your parents that are necessary for your survival will protect you can have devastating, life-long psychological effects. And indeed everything can be traced back to that.
Perhaps controversial but I think this is the origin of most religion: baby is protected by infinitely powerful parents, child has shocking and painful revelation that their parents are not infinitely powerful and have all kinds of insecurities and weakness, therefore a forever infallible representative (e.g. God) is constructed to fill in that gap.
But I think that's just one way to fill the gap, and people engage in all kinds of strange, obsessive behaviours to try and reclaim that illusion of eternal protection and safety.