There are two counterpoints to this. The first is that the lean compile largely sits outside of what most working mathematicians would call a proof. This is partly because the text and logic of lean arguments is quite foreign to people who have proved a lot of theorems. Functionally, it’s a foreign language and when most people in mathematics don’t understand it we just have to trust that everything works as advertised. That’s not to suggest it doesn’t, but it does require trust that is often slow to be earned.
The second counterpoint largely centers on the question of “What is a proof?”. Historically, the answer has had two parts: 1) a logical validation of a mathematical statement, 2) a walkthrough of that logical argument that allows the reader to understand the arguments that validate the claim. In this sense, lean code is very much “not a proof”. Not because the level of rigor is so low, but because the explanation of argument and transmission of understanding is missing.
The OP makes a completely fair point that what mathematicians typically call “proofs” could rightly be called “proof sketches” because they don’t argue/validate at the level of symbolic logic. But they do transmit understanding of the argument from author to reader, in a way which allows the reader to be skeptical and test and explore the arguments for themselves — searching for an error, then building on the ideas. It’s worth thinking about how that has worked for establishing validity of mathematical statements. Every time a listener in the audience or reader of the paper says “I don’t understand this part of the argument right here” it initiates a challenge on the validity. For popular or useful theorems, there can be many challenges. It’s not a perfect system, but it’s surprisingly robust, and it has allowed mathematics to advance quite far. I think lean certification is an excellent way to improve rigor in mathematics, but it would be a mistake to replace the traditional proof with lean certification only.