Well, to put it shortly, it's just because $L^2$ and $L_z$ are two observables that have no $r$ dependence. As such, it makes sense to write down $Y$ in terms of these two.