01Stacking layers: representation learning, made concrete
A multilayer perceptron is dense layers stacked with non-linearities between them: input → hidden → hidden → output. Every unit in a layer sees every unit in the previous one, which is what 'fully connected' means and where the parameter count comes from.
The useful way to think about the hidden layers is that they are learned features. You didn't specify them, and they're usually not individually interpretable, but the network has re-encoded the input into a representation where the final linear layer's job is easy. That's the core claim of deep learning: given enough data, learned representations beat hand-designed ones.
Which is also why the practical advice is 'start narrow and shallow, grow until validation stops improving'. Capacity is cheap to add and expensive to justify.