My experience is that cattle don't attack people spontaneously.
There is always a clear reason.
And before the animal attacks, it has already warned you several times through body language.
Of course, we must recognize these signals and be willing and/or able to respond to them appropriately!
If the behavior of the stockman or animal handler changes in a positive way, the behavior of his livestock will also change in a positive way. This will benefit job satisfaction, safety, efficiency, profitability and animal welfare in the long run.