Most likely the ground crew was at fault... no jetway operator or other ground personnel available, stubborn or broken jetway, etc etc. The only time I've been stuck for a while before the door opened was on an ERJ - they couldn't get the airplane to de-pressurize properly.