Why are the walls of the ventricle thicker than those of the ventricle?

Do you mean that the left ventricle's walls are thicker than the right's?

It's because one side has to pump blood only to the lungs, while the other side needs to pump blood to the entire body, and needs to be stronger.