functions <keypad.h> ??

getkey() is part of keypad so to use it you use the calling convention keypad.getkey().

The reason? because that's the way it's done. Kind of like Serial. Serial.begin(9600) Serial.read() and so forth.