Mostly this was in the vinyl days. Where they just had to. You had only so much time you could cram into one side of vinyl, and where the songs just a tad too long, and the pauses between them short enough, you could cram them in if you raised pitch ON ALL TRACKS at the tape machine. You couldn't do it too much, because over 50-60 cents sharp you start to hear the "sample" pitch change too much expecially on drums and voices (since they were the only acoustic instruments left in a general rock band). This was not even a producer thing, but a record company thing compared to todays "loudness wars". If you had a turntable with adjustable strobe speed that was floating you could bring it down to "proper" recorded pitch with lowering the 33 1/3 rpm or whatever it was. You did lose some bass, and some noise increased as well. Just the same thing as they dabbled with putting all slow ballads or not dense tracks at the inner tracks of the vinyl. The needle derailed in that case.
My bigget gripe today, is that I still hear those things on iTunes, Spotify, and Tidal, as well as remastered CD's of past. On CD this was a totally no-no. And all digital. BTW DJ's doing this all the time, and they align the BPM instead, and couldn't care less if the pitch was a full step too sharp or a full step too flat. But I tell you, nothing in within 5 cent pitch range.