If you’re doing chest compressions to save someone who has stopped breathing there roughly a 10% chance they will survive but a 0% chance if you don’t So it’s often worth it anyway.
However it does keep the blood flowing and can prevent brain damage until a defibrillator is available which has a much higher chance of saving someone who has stopped breathing.
The heart is also protected by the lungs and breast plate.
This is called confirmation bias