Probably to get him on their side
From James Potter and the Hall of Elders' Crossing:
It shocked and worried him for a moment. He was irrationally afraid
that somehow his thoughts had gotten out and betrayed him, that it was
the noise of the Gryffindor table standing, booing him. But it wasn’t
the sound of booing. It was the sound of applause, ...