Because fractional distillation of liquid air can separate air into its constituents such as oxygen, nitrogen, and so on. So, air is a mixture instead of a pure substance.