Protection
Carrying some form of protection while hiking is wise, even though hiking trails are generally quite safe. The main threats you may encounter on the trail are from animals like bears or mountain lions and sometimes other people.
Bear spray is a recommended piece of safety gear, particularly in areas where bears are common. Many parks and wilderness regions require hikers to carry bear spray too so look out for that.
A knife more substantial than a pocket one is another useful tool to have on hand. In places where it is legal, a firearm could also provide an additional layer of protection, though this is a more controversial option.
A walking stick or trekking poles can also be helpful for fending off snakes and other small animals. You can use them to gently move snakes off the trail without having to get too close. They provide extra stability on uneven terrain as well.
When you're out on long-distance hikes, you may find yourself in very remote areas where help could be far away. Having some means of self-defense can give you greater peace of mind and the ability to respond if needed.
Ultimately, the goal is not to make hiking seem like a dangerous activity. Attacks by predators or other people are quite rare on most trails. But just like bringing a first aid kit or an emergency GPS device, having some form of protection can provide an important backup plan. It's better to have it and not need it, than to wish you had it in the moment you do.
The choice of what protective gear to bring will depend on the specific hiking environment, local regulations, and your own comfort level. But a small knife, bear spray, or even just a sturdy walking stick can give you an added sense of security and the ability to respond if an unexpected situation arises on the trail.