Most likely the barn collapsing on top of the filing cabinet crushed the whole thing into a giant shell casing. Add the weight of the barn debris laying on top, and the resistance to the expanding powder gas would be fairly significant. Once the powder ignited, the results speak for themselves.
Unconfined smokeless powder burns very inefficiently. It needs to be contained to generate pressure. The storage cabinet construction guidelines state that the joints should be weak so the cabinet can burst open at a low pressure to avoid having an catastrophic failure.