In Iterative Reweighted Least Squares (IRLS) algorithm, an optimization problem with the weight treated as known is solved in each iteration during solving the main optimization problem. For instance, when solving $\min Q(\beta,V(\beta,\gamma))=\min(y-X\beta)'V(\beta,\gamma)(y-X\beta)$, the IRLS solves $\min Q(\beta,V(\bar{\beta},\bar{\gamma}))$ where $\bar{\beta}$ and $\bar{\gamma}$ are the value of $\beta$ and $\gamma$ in the previous step, which has a closed form solution for $\beta$.
My question is that why do I need to solve this problem in each iteration, or what is the role of this sub-optimization problem in the context of $\min Q(\beta,\gamma)$? More generally, why do I need to solve additional optimization problem when solving an optimization problem?