He's the Speaker of the House so his official job is to represent and cooperate with members of the House.
We elected a bunch of really dumb people to the House
He pretty much has no choice but to say dumb things because he represents dumb people that we elected.