When you install SAP software, the software creates a system administrator account called "sa," which can use any database on an SAP ASE server, including master, with full privileges.
When you log in to the SAP ASE server, you are prompted to set a password for "sa." See the Security Administration Guide for more information about passwords.