Sure, in any other contexts, selling Stadia customers to Microsoft or Nvidia (for example) would be a voluntary decision, however they are barred from just shutting down this one. They can even shut down Gmail or YouTube with no legal repercussions (sure their reputation will suffer but legally it's in the clear), but Domains is in a different legal standing.
While chump change to the likes of Google, it demonstrates Squarespace views this business as highly profitable. Migrating an acquired business into your systems makes a lot of sense.
Unless you have some evidence it would have been just simply shut down otherwise, I think you're inferring things that do not exist. Few if any of the other "shut down by google" operations could have sold for anywhere near this amount, as they almost universally lost money and/or were niche.
[1] https://www.theregister.com/2023/06/18/google_domains_shutti....
Also if they're still keeping the original Google system then it's believable that they are indeed just selling Google Domains, but the fact that all domains must be migrated into Squarespace's system tells a different story.