If you notice, the sex was from Harry's point of view. We don't get into Severus' head, and he is feeling aroused not because of the sex, but because of the power he is feeling over humiliating the son of his enemy. In this fic he doesn't fancy Harry at all, it's the power/revenge he gets off on. Thanks :)