LeetCode and similar tests are why I got out of software development as a career. I was tired of jumping through hoops on interviews.
It's a symptom of the ageism issue that is so prevalent in the software engineering world.
Thirding this (sandeep1998 and sidpatil were before me)
I became a data analyst recently by the way. They say the field is oversaturated, but I don't think this is true if you're coming from a solid software engineering background.