HMDGlobal deal is Nokia's way to keep the consumer brand recognition without risk or investment. Nokia still owns the brand, licenses technology and patents, has one member in the board and gets royalties. Anything they cook up in Nokia Technologies / Bell Labs can appear in these phones.
Money comes from Foxconn and Foxconn also manufactures the phones.