Why do they call it an air conditioner and not an air cooler?

Because in air conditioner keeps the air at a certain condition depending on your preference. An air conditioner can both cool and heat the air.