Asked about How the main algorithms actually work

Why does gradient boosting work?

An answer that works

Each tree is fitted to the gradient of the loss with respect to the current ensemble's predictions, so adding it moves the ensemble towards lower loss. It is gradient descent over functions, which is why a small learning rate with more trees generally wins.

Reading an answer is not being able to give one. The section that teaches this is How the main algorithms actually work, 5 hours of Supervised learning.

Learn this properly