Yes, Lean is stronger than ZFC. But two of the checkers, con=leche and con-ron, don't just verify based on Lean. They come with a formal proof from set theory that they cannot wind up accepting an incorrect proof.
In other words you can ignore Lean. We have a proof from ZFC, of the Riemann Hypothesis. We have a proof, acceptable in ZFC, that this proof is correct.
In other words Lean's dependent type theory is used to arrange its understanding of the proof. But the actual reasoning that you wind up with for this proof does not need anything that doesn't follow from ZFC.