Vault is actually a space/chamber for secure storage.
And treasury is a place/ building to where treasure is stored, but it is also used for government department responsible for budgeting & controlling public expenditure, management of the national debt, and the overall management of the economy.