I asse guns made life too expendable.
Some previous answers to similar questions:
When did kings/members of the royal family stop leading armies on the battlefield? by u/NWM
Did Medieval kings/lords really lead the charge? by u/Emperor_NOPEolean, u/Daeres and others
Is there any evidence that the leaders of an ancient army lead the charge into battle by running ahead of everyone else? by u/ScipioAfricanvs and others