Exactly, he probably was just rattled by the attempt to unseat him, just enough to realize he needs to maintain some pretense of not being a total stooge.
You never know what goes on in the background. Maybe, just praying... but maybe there were contingencies to him getting enough votes to keep his speaker job.