This could be due to system settings that restrict background app activity to save power. On Windows, check the power settings and ensure that Spotify is allowed to run in the background by going to Settings > Privacy > Background apps and ensuring Spotify is enabled. On mobile devices, look for battery or app optimization settings and adjust them to allow Spotify to continue playing music in the background.