Question: why hagrid was expelled from hogwarts?
Answer: It is revealed during the series that Hagrid attended Hogwarts while Tom Riddle was also a student at the school, and that Hagrid was expelled during his third year (because Riddle, in his pre-Lord Voldemort days, framed him for opening the Chamber of Secrets).