Almost every site we build at work has a migration from some other platform to WordPress. We commonly script migrations in custom plugins using WP-CLI which we enable during the migration and turn off immediately afterwards.
We keep the code in our Git repos as historic documentation of how the migration worked, in case there are any questions why values were stored in certain fields or why we mapped an existing value to a different one.
Also, it's code the client paid for, and they get warm fuzzy feelings from knowing they have something to show for it.