When a website slows down, WordPress is the obvious suspect. It's the thing with the name on it. And there's a whole industry with an incentive to agree with you, because "you need to rebuild on a modern platform" is a much larger invoice than "your images are too big."
But the platform is rarely the bottleneck. A lean WordPress site on decent hosting loads in well under two seconds. We manage sites that do exactly that. Meanwhile, plenty of sites on fashionable modern frameworks are slow, because they were built carelessly or they're serving 4MB hero images to phones.
Almost every slow WordPress site we've been asked to look at came down to one of four causes — and none of them is WordPress.