Because AltGr and Alt+Ctrl are equivalent (in Windows). Two key stroke sequences mean the same thing, and Alt+Ctrl won (probably because there is no AltGr on the US keyboard layout - that's my guess).
If you want to check for AltGr, check if Ctrl is pressed whenever Alt shows up in your hook.