All animals die, and dying from a clean rifle shot is preferable to 99.9% of the ways animals will die in the wild.
Regulations like bag limits and license lotteries prevent over-hunting, and in many situations (like the wild boars in Italy) hunting is an ecologically positive activity, as it reduces populations that would otherwise explode and destroy its own ecosystem.