I think you'll find that's a feature of the app launcher. As I recall, Google removed the "feature" of music apps taking over the lock screen with android 6. There are third party apps in Play store which will bring this back or you could try using a different launcher.