When Windows 10 was released, Microsoft provided a free upgrade path from Windows 7 to Windows 10, but there isn't one from Windows 10 to Windows 11. A license must be bought, or your device must be qualified for the free upgrade.