It's just that now we're so used to the idea of a computer searching for the best flight, the best map, the best way to optimize your code, the best way to execute your SQL query, that it doesn't seem like "magic" any more.
When you say "no dataset, no training" you're talking about machine learning. And when you say "layers", you're talking about deep learning.
LR typically has number of layers = 1, though I bet someone imaginative enough could create "deep linear regression", if that was useful for anything.