Look up the word “cabinet” in the Shorter Oxford Dictionary, and once you get past the furniture-related definitions you run into the meaning: “a secret receptacle, a repository” and shortly afterwards “a committee of senior ministers responsible for determining Government policy”.
Track through the history of the word, and you find one meaning arose from the other – the idea of a secret room in which meetings were held, and the institution that makes government decisions.