I have stepped on a dogs foot. It made a “Yipe!” noise and leapt back. Then it approached me “submissively”, with it’s head held low and tail down.
It seems rather “obvious” to me that the animal felt pain, reacted suddenly to the sensation, and then completely changed it’s demeanour towards me.