Microsoft recently made some changes to the developer program, as detailed here: https://devblogs.microsoft.com/microsoft365dev/stay-ahead-of-the-game-with-the-latest-updates-to-the-microsoft-365-developer-program/comment-page-3/
TL;DR, you need an active VS Enterprise subscription to qualify for a M365 dev tenant.