Thoughts are powerful and, therefore, dangerous
Anybody who has ever struggled with mental issues will immediately recognise the truth in this insignificant little sentence in the fifth Harry Potter book. It’s hidden between much more important plot points, but it has the weight of wisdom.
When your own mind becomes the enemy and your thoughts more dangerous than anything else you will see its significance. Your own thoughts damage you and you cannot see how you could control it.