
There is no mapping in the backend. The mapping is done on the SharePoint WFE. SQL client components evaluate the connection string and identify the alias. Then they route the request to the mapped SQL server instance.
SQL server would only be aware of the alias if the same configuration is done on the SQL server which is optional.