Personally, I didn't think he was gay. He had a whole bunch of girls in his music videos and live performances, and his lyrics reference flirting with girls.
Well apparently he thought he was straight at the time. Even if he wasn't, some record companies might have wanted him to keep his sexuality under wraps.