So, when I play Quake 4, I'm roleplaying, since I'm playing the role of Matthew Kane? Of course not, that's a FPS.
I don't know what genre LoZ is, because I haven't played it, but I can say this: An RPG is any game with "stats", "levels", weapons with numbered bonuses on them, things like that.