Fair enough, but I've seen people implement code within cloud scale applications with `O(n^2)` algorithms where a well known `O(n log n)` algorithm exists, or an `O(n log n)` algorithm where an `O(n)` algorithm exists. Eventually they've been identified thanks to profiling and replaced with suitable, more efficient, algorithms. This almost always costs more (in terms of human time) than identifying it before it gets into the code-base.
And these algorithms have definitely been covered by LeetCode problems, given the way LeetCode problems are engineered using the wrong class of algorithm complexity will result in a _Time Limit Exceeded_ (TLE) error. I'm no fan of LeetCode but I'm sure it's helped some people learn to think twice about their choice of algorithm.
Many inefficient algorithm choices are caught at code review time, by people who have more experience and/or a better understanding of algorithmic complexity, and so the original programmer is directed to learn why, and improve their knowledge so they are less likely to do the same in the future.
Similarly I'm sure there are hundreds of thousands of coding jobs where this kind of detail does not matter at all as the code involved simply never sees the scale where `O(n^2)` instead of `O(n log n)` becomes a noticeable problem.