Why the iron magnetization in Gd2Fe14B and the spontaneous magnetization of Y2Fe14B depend on temperature differently