The small liquid nitrogen machine works by using compressed air to cool and compress nitrogen gas into a liquid state. The liquid nitrogen is then stored in a tank and used for various applications, including cryopreservation, food processing, and medical treatments.