Pain can easily occupy most of our thoughts and attention. When pain is highly uncomfortable, it can be challenging to focus on anything else.
This can lead to a vicious cycle as the more you ruminate on or catastrophize pain (imagining the worst possible outcome), the worse it tends to feel, making pain even more mentally consuming.