sorry, if you take away heat from a gas, in my vocabulary it is called cooling.
The gas will condense first i.e. turns into liquid, if you continue to cool it lower, it will turn into solid. If there are more components of course these will happen at different temperatures. Helium will freeze all gases to solid, that's why it is difficult to handle, more difficult than liquid nitrogen.
Angrybear are you saying that it is not cooling,
I am not exactly familiar with how the process itself is done so the air does Liquefy. They compress it, dissipate the heat produced, then expand it to release its stored energy further.
In the end it is still freaking COOLING AND LIQUEFYING. The fridge works similarly, you compress a medium with some heat exchange and expand it in the place where you want the cooling effect no?
by the way N2 and O2 can be called waste/by-products of rare gas production process, if you want to know it really.
https://en.wikipedia.org/wiki/Noble_gas