If the normal equation works, why do we need gradient descent?
That normal equation is sometimes called the closed-form solution.
The short answer to your question is that the closed-form solution may be impractical or unavailable in certain cases or the iterative numerical method (such as gradient descent) may be more efficient (in terms of resources).
This answer gives you more details and an example.