Happens all the time. Those "ugly" pages are usually the result of relentless focus on one intent - they haven't been padded out with UX flourishes, conversion pop-ups, or bloated design frameworks. they load quickly, match search intent immediately, and carry years of accumulated backlinks and engagement signal weight.
It's a bit like an old Amazon listing that's just bullet points and one image: it ranks for the core term because it doesn't try to be everything to everyone. Meanwhile, a modern, beautifully designed page often tries to solve three different queries on one URL, buries the actual answer under hero sections, CTAs, and endless paragraphs. The user lands, can't find what they need in two seconds, and bounces. Google sees that and the shiny page falls.
From a SEO perspective, it's about clarity, not aesthetics. If a page satisfies the query fast and reduces pogo-sticking, it holds rank. The trade-off, of course, is conversion rate. That ugly page might dominate the SERP for "best yoga mat" but it won't make anyone click "add to cart" - it's built for the algorithm, not for closing a sale. In the long run, that's a problem if you're trying to turn traffic into revenue.