From gain- (“again; back; in return”) + yield. Compare Danish gengæld, Middle English gayn-ȝelden (“to repay”), Swedish gengälda (“to repay”).
gainyield