Anthem kept the servers going longer, it got some updates and EA even promised an entire rework akin to No Man's Sky, but EA being EA they never delivered it and just cancelled everything lol.
Neither did Hello games when they continued to work on NMS, it didn't have any monetization beyond buying the game, but they still did it in the end and it paid off.