When you release the liquid carbon dioxide from the tank, the expansion of the liquid and the high-speed evaporation of carbon dioxide gas cools the remainder of the liquid down to the freezing point, where it turns directly into a solid.