I think the crypts underneath Winterfell are ancient prison cells leftover from the previous battle with the Others. The ceiling collapsed generations ago with what remained of the long forgotten Night Queen still trapped underneath. She was held by the “wardens of the north” as incentive to keep the Others from…