There is a difference between best power and what is best for power. If you run your engine leaner, it creates more heat, and more power, but heat is dangerous and not good for longevity. So running a bit rich to keep temperatures lower is best.
This explains it pretty well.
Air/Fuel Ratio tuning:Rich vs Lean | Turbobygarrett