The 3rd and 4th was due to good team strategy to get a lap down early in Q3. They did well enough still on their own merit to make it to Q3, but I suspect they’d have been much lower if the cars weren’t compromised by the weather.
Bigger question for me was why Perez came out so late for Q3 when RB clearly wanted Max out as early as possible.