iOS allows you to limit the maximum volume of the built-in speaker in your iPhone and iPad to protect your hearing while listening to music, watching movies, and more. You can turn it ON or OFF from Settings, as shown below.
How to limit the max volume of iPhone or iPad speaker