First case: organized group rotation is feasible, so one group prays and the other guards.
Second case: even such organization cannot be maintained, so each person prays as able, mounted if needed and using gestures for bowing and prostration.
The difference is rooted in actual danger and ability, not simply labeling a situation as fearful.