Flare guns are considered firearms in many countries, which is why flare guns are nearly completely obsolete for international sailing. They're also much less visible than equivalent handheld flares.
While there are USCG-compliant flare guns, you also cannot satisfy SOLAS requirements with a flare gun. You need to carry (depending on voyage and vessel) handheld distress, collision avoidance, and/or paraflares.