How do petrol tank valves enhance safety?

They prevent spills during filling, reduce overfill risk, and help comply with regulations by shutting off fuel flow when tanks reach about 95% capacity.