Anti-aircraft guns will protect your ground units from aerial threats such as bombers and fighter-bombers. Some of them may even be used against ground targets.