Kyriba Corp. interview question

Why do we use Gradient Descent algorithm in Machine Learning?