This is awful.
This is just speculation, but it sounds like the professor saw something of himself in the little boy and didn't want to tell him no because he didn't want to think that he would have been told no back when he was that age.
And this is how patriarchal misogyn perpetuates itself.