If the cap was the primary seal the gas would all escape when you removed it.
Well, it would if the secondary seal, known as a valve, wasn't fitted or had failed.
I've never known an engineer who didn't have a bag full of them anyway, or at least a full set on his car
I don't know any who have them on their car. Getting the wheel rebalanced just isn't worth the effort.