The principle behind this is impulse of force.
When the cricketer withdraws his hand while catching, the time period of contact of ball and his hands increases. So the impact of ball hitting will be less and catch can be taken comfortably.
Impulse=force*time
when time increases impact of force decreases.