Thestrals are magical creatures with wings that are only visible to people who have witnessed someone dying in front of them. Harry had recently witnessed the death of Cedric Diggory, and Luna Lovegood had seen the death of her mother when she was just nine years old. Therefore, only Harry and Luna could see the Thestrals, and Hermione, Ron, and Neville couldn't.