There are a lot of things in physics that we use because they work. Lagrangian mechanics gets used a lot because it works a lot. It's just a tool, like addition or subtraction or Fourier transforms.
I recommend Vertasium's video, The Closest We've Gotten to a Theory of Everything. He did a great job of showing how these concepts evolved and got selected over time. It's a good background to start from.
In my own research into the history of Lagrangian mechanics, I note that Lagrangian mechanics did not start out as an attempt to solve everything. Lagrange used it to solve a few problems like the brachistochrone curve. His approach was more elegant than past attempts. In doing so, he constructed the calculus of variations and he and Euler developed the ever important Euler-Lagrange equation:
$$\frac{\partial L}{\partial q} - \frac{d}{dt}\frac{\partial L}{\partial \dot q} = 0$$
This was an equation that held true for every stationary path.
It was Hamilton that noticed that if you use the now famous Lagrangian $L=T-V$, the Euler-Lagrange equation happens to give you $F=ma$, which means any system whose behavior is defined by $F=ma$ can be rephrased as a variational problem finding a stationary path.
After that, Lagrangian mechanics became popular because it had some very nice properties, particularly that it made it very easy to transform coordinate systems and to use curvilinear coordinates. This decoupled us from the cartesian coordinate systems needed to make Newton's laws tractable (they can be written in curvilinear coordinate systems, but they're much uglier than the elegant $F=ma$).
This made Lagrangian mechanics a popular go-to tool. If I'm exploring a new physical property, I'm going to try my existing useful tools first before branching out into developing new tools. And Lagrangian mechanics has held up astonishingly well. The assumptions of the universe around us (such as conservation of energy) play nicely into the Lagrangian formalism.
Thanks to Cleonis's comment below, I can end this the way I intended, with a quote from the forward of "Applied Differential Geometry":
