I think she did it because her series is over and she's an attention-whore like some Hollywood starlets.
LOOK AT ME! LOOK AT ME! ONE OF MY CHARACTERS WAS GAY!
meh.. I never got into the whole HP thing. What was his mom smoking when she named her kid Dumbledore anyway?