Why / how are people gay?

(I have nothing against gay people, this post is only out of curiosity)

People being gay is a biological cause or psychological? Are people born gay? Or their upraising, hormones and environment condition them?