During sikh rule in early half of 19th century, they were part sikh army - sort royal army (like Basij of today's Iran ).
One such incident is here.
But some due to religious or other reasons some never went towards newlife. Modern day Nihangs are in that category.
Historic account From Kishore Kunal's book on Ayodhya on Nihang Sikh's role in 1858 & copy of FIR.
Many Nihangs organisation openly sided with goverment side in tussle.
Most modern days sikh would consider this too hinduised to be comfortable with it.
The prayer has been passed down through Nihangs over the years.
More aware, responsive or mature society would have adjusted them in one way or other.
This obsession with human safety is modern trend (not that I am against it).
I would say some challenge for Sikh organizations & state of India.
Perhaps we could start by setting up the cavalry forces of them..
(End)