Welcome to Android Central! It sure would help to know which phone you have. Also what app seems to be playing music -- is it YouTube Music, Spotify, Pandora, or something else?
It's quite a leap in logic to suggest that this is somehow done on purpose. Glitches happen, and they often happen after an update (either of an app or of the system). There are ways to troubleshoot them, so register on this forum to continue the discussion.