A protected soldier checks from the side and the horse watches over it.
Soldier check, horse support
Black's general stands on f7. Red's soldier on e6 is one step from the palace, and the horse on g6 watches e7 and f8.
Movese6e7
e6e7 The soldier attacks f7 sideways. The general cannot capture it, because the horse protects e7, and f8 is covered by the horse. g7 is outside the palace. Black's advisors cannot reach e7. Checkmate.
A soldier that reaches the enemy palace can give check sideways. The general cannot take it if the soldier is protected, and a horse is a perfect protector.
The pattern
The soldier steps next to the general, inside the palace, and gives check along the rank.
A horse protects the soldier, so the general cannot capture it.
The same horse covers another point of the palace.