He realised that the real owners of his wealth and property were Lord Siva and His Bhaktas. He gave permission to all the devotees to enter his palace/granary and take whatever they wanted.