Loss must be covered by its yield, simple as that. The left hand side of equation 1, \lambda*(1-R) is the estimated total losses because \lambda is the frequency (called hazard rate) of default, times 1 minus recovery rate would be the total losses, and it has to be met with the potential yield should no default happen, which is the right hand side. Then by moving the 1-R to the right hand side would be your equation (22.2).
The whole thing is based on pricing principle that the market value of a bond (as well as any other assets traded in open markets) must be priced considering the default rate and recovery rate.