How does a network know it's wrong?
Loss functions turn every mistake into one number. Here's how squared and absolute loss score the same misses very differently. A neural network can't feel embarrassed when it's wrong. It needs a way to measure its mistakes, so it knows which direction to improve.