Professor McGonagall had met Harry inside the train, which was a very big surprise! She told him he had to sit in the back, explaining that certain students needed extra care and protection for the year.