Answer: Ivan Ilyich knows quite well and definitely that all this is nonsense and pure deception, but when the doctor, getting down on his knee, leans over him, putting his ear first higher then lower, and performs various gymnastic movements over him with a significant expression on his face, Ivan Ilyich submits to it all as he used to submit to the speeches of the lawyers, though he knew very well that they were all lying and why they were lying.
In these lines, we can see that Ivan Ilyich is a changed man. The sickness he suffers has allowed him to reflect on his past life, and on all the things he used to value. He now realizes how wrong his values were, and how silly society can be. This hipocrisy is highlighted in these lines. Ivan realizes that so many things that form part of a "respectable" life are deceptions. This is the case with doctors, and with lawyers. And even though he always knew it, he still took part of the activities, because this is what was expected from him.