Both pawns are going to run. But the race is not the point. Your king takes a broken path, up to c4 and then back to d3 and c2. And that crooked route is what makes your new queen arrive with check.