Your phone has different profiles for different situations. You can edit the profiles to your liking.
There are several profiles that you can use in different situations. There is, for example, a silent profile for when you cannot have sounds on and an outdoor profile with loud tones.
You can personalise profiles further.
For each profile you can set a specific ringtone, ringtone volume, message sounds, and so on.