There is not really a general answer to this question. Kinks, fetishes, and paraphilia can come from all kinds of different places—revisiting or reversing or taking control over trauma, cathartically solving non-traumatic childhood problems in the safe place of fantasy, the excitement of violating taboos (whether societal or personal to you), a place of frustration or self-loathing, and so on. What you have to figure out is where it's coming from in your case or the case of the person you're dealing with. There is lots of work on this kind of thing - I'd check out Justin Lehmiller if you're curious. Stefani Goerlich is another interesting person here.
Read Arousal: The Secret Logic of Sexual Fantasy by Michael Bader, or maybe some of Justin Lehmiller's work. It's pretty well-established now that sexual fantasies often connect to stuff in our childhood and can begin at that time, even if it's not quite "sexual" before puberty.
Sex at Dawn is notorious for how bad it is, someone even went of far as to write a book purely in order to point out how much it distorts the evidence it uses.
Dawn's authors wrote the book purely to conform their own beliefs about sexuality and wilfully ignored any evidence that didn't agree with their views.