The truth is leaning to the latter.
Sexuality distorsions are products of some imbalances somewhere down the line, be it past lives or negative influences from somewhere in the society. All can be cured with universal spiritual Love from the Creator.