Where SQL comes from
SQL was standardised by ANSI in 1986 and ISO in 1987, and dump files have been the default backup and migration mechanism ever since mysqldump and pg_dump established the pattern. The persistent problem is that no two engines' dialects agree: a PostgreSQL dump will not load into MySQL without editing, so a .sql file is only really portable in the simplest cases.