The outlet check valve closes while fuel is being drawn in due to a pressure difference on the two sides of the check valve. Once the piston starts its compression stroke, the inlet check valve closes via the spring and fuel pressure and the outlet check valve opens due to increasing fuel pressure, forcing the check valve off its seat.