What's more, it was expected that when the boy was mature enough to take a wife and have children, the younger would go off and do so, ending the relationship with the older man.
In other words, homosexuality was more like a phase for many people. It wasn't something to be ashamed of, any more than the terrible twos or puberty.