No, they want the code to match their expectations. I interviewed last year, and breezed through the early and behavioral stuff, occasionally being up leveled or oddly positive feedback in the process. They'd often quickly move from interviewing to selling me, talking openly about (relatively good) salary, etc. Then I'd do the leet code* part and lol, bye bye. And after about 10+ rejections, as I got better (and similar) coding questions, suddenly that all changed. Rejections became offers, "not good enough" became "one of the best ever" -- same person, same(ish) questions. They all just care a LOT about the quality and speed of the coding part (along with the level of style and communication they expect). Its not unreasonable, I guess. Its odd, its frustrating. Maybe its accurate. But its best to accept what it is, get REALLY good at the coding part, and you'll get a lot more wiggle room if you're bad at the other parts. And if like me, you are great at the other parts, expect to do a lot of interviews to get the offers, and / or a lot of practice (but I strongly recommend interviewing first, as demoralizing as it is, because the companies you like tend to all ask same style of questions, I practiced tons of stuff I didnt end up using).
*They were rarely leet code, usually more realistic coding questions. But same vibe.