The secret is that Buffett
isn't beating the market by 7-10% a year over decades. He's not a hedge fund prodigy, he's a management prodigy.
His companies beat the market because he is the antithesis of the quarterly-numbers-driven model of Wall Street. He focuses on fundamentals, long-term value, and having leadership that's on the same page. He makes sure his businesses aren't underspending on fundamentals or overspending on inessentials, and then he gets out of the way.
Saying that Buffett "beats the market" is like saying that a sports coach is really good at picking winning teams. His companies outperform the market because Buffett enables them to outperform the market.
(on top of that, yes, he's a savvy investor and he's made some ballsy calls - but absent his management I doubt you would see him doing better than the 2% that other actively-managed funds can earn above the market return)