Another reason to use a compressor is that the efficiency of a gas turbine increases with the pressure ratio (p_combustion_chamber/p_environment). Thanks to the compressor it is possible to run a turbofan or turboprop efficiently at low airspeeds.
See:
Brayton cycle - Wikipedia, the free encyclopedia