Regularization is a way of telling a model to stay humble.
It adds a penalty for complexity to the thing being minimised.
Now the model must trade accuracy on training data against staying simple.
L2 shrinks every weight toward zero without ever quite arriving.
L1 pushes weak weights all the way to zero and drops those features entirely.
So L1 gives you feature selection for free, which helps when you have many columns.
The strength of the penalty is a setting you choose and tune.
Too little and it does nothing, too much and the model underfits.
It matters most when you have more parameters than the data can support.
With enormous amounts of data it matters much less.
Dropout is regularization for neural networks under another name.
Early stopping is regularization too, since it limits how far the fit can go.
Even adding noise or extra augmented data works the same way.
Scale your features first, or these penalties punish some columns unfairly.
The point is never a lower training score, it is a better score on new data.