When I turn my tablet on or off, the volume of my music goes way down

How is that even a thing that happens? That is not a useful feature.