The problem isn't leetcode so much as how it's interpreted.
Goodhart's Law: “When a measure becomes a target, it ceases to be a good measure.”
Leetcode questions are a useful measurement in the interview process
What they are not is a useful goal to hire someone by.