"Is this all real? Or has this been happening inside my head?"
The subject of this article is a real-life person, company, product, or creative work that has been mentioned "in-universe" in a canon source. The Harry Potter Wiki is written from the perspective that all information presented in canon is true (e.g., Hogwarts really exists), and, as such, details contained in this article may differ from real world facts.
In his first flying lesson, when Harry Potter's broomstick was one of the only ones to fly up to his hand on his command, and he noted Hermione and Neville's not having done so, he thought that broomsticks might be like horses, able to tell when one was afraid.