You still need to buy Windows 10/11 Pro licenses even though you are purchasing E5 licenses. The E5 provides Windows 10/11 Enterprise (which is an upgrade and includes more features).
A good explanation is below:
More information on enterprise plans from Microsoft:
https://www.microsoft.com/en-ca/microsoft-365/compare-microsoft-365-enterprise-plans