GDPR just says you cannot keep personal data for longer than is required for the purpose it was collected for (with some exceptions where it can be kept longer).
If you have paid for digital goods with an account, the data is clearly required! Deleting an inactive account after say a year is a choice made by the company, not directly imposed by GDPR.