One of the major examples I’ve found many people use is that God is like a parent, or God loves us and wants the best for us just like a parent does. I think for most of us, this is our first model of a lot of things. Parents are mini gods, of a sort.
But not all of us necessarily had healthy upbringings. I can’t speak to those whose parents told them flat-out that they were unwanted or that they didn’t love them. I think for many of us though, it was more a case that what love looked like was warped. I don’t think it was always a defect of love per se, but a defect in other parts twisting its expression.
There was a definite insistence if you talked to other people, that you should be glad that you had parents who loved you and who wanted to set you on the right path. (To be fair, I think a lot of that is down to communication issues.) They hurt you because they love you, and when you get to be more mature you’ll understand that it was necessary. They hurt you because you’re not doing what’s right and if you did what you ought they wouldn’t have to.
I expect the form it takes depends on the family. For me, one of the biggest barriers were that I was generally just assumed to know what I was supposed to do and how to do it, and if I didn’t then it was my fault for not trying hard enough. That definitely crept into faith - it’s hard not to be afraid that I’m somehow committing a major sin and have no idea but God’s still going to punish me for it.