It’s considered poor security practice to have compilers or interpreters installed on machines where they’re not needed. Someone who isn’t a developer and is only installing packages via apt (or snap, yuck) doesn’t need gcc.
Haha, I assume you are joking. Because they are intended to get in the way of the bad guys, to be sure at the cost of some inconvenience to the good guys.