It is useful for scripts to display proper snap titles (instead of identifier names) without hardcoding it and allows them to be shared between snaps.
For example, the following message:
Hello. In order to improve the user experience, the subsequent releases of the $SNAP_TITLE snap will be set in <i>classic confinement</i>, which means that the snap will now gain identical access as regular non-snap native applications. For safety reasons the snap automatic upgrade process will not occur during this confinement switch and requires manual intervention. Please run the following command in a terminal to do so:<br> <br> <tt> sudo snap refresh --classic $SNAP_NAME</tt>