I was bullied at school, it lead to me achieving better grades.
Is it such an unreasonable consideration that being rejected by society (even the society of Kings that would have been more than open to homosexuals) would lead one to focus attention on more ethereal pursuits?