The piston forms the lower part of the combustion chamber. In order for the piston to move, there needs to be a small clearance between the piston and the cylinder wall.
The construction of the piston is designed to maintain the proper clearance when the piston expands due to high temperatures during combustion.