Not all MDs can be surgeons. So for those who are not, nothing wrong with making money from prescriptions.
And let's be honest, thank g-d we live in a country wealthy enough that over-prescription of medication is even a problem.
Although many good citizens own and carry guns, keeping communities safe still fall on those who carry badges.
In a gunfight, even if you do everything right, you can still get killed.