Office 365 (if you mean that) is linked to a Microsoft account indeed.
Compare it with a credit card. If you cancel your creditcard account, you can't use your creditcards linked to it any more.

But Microsoft could have given you a free license, if they wanted.

Kees