Might happen if you ever play pure minor patterns over tunes like Impressions or So What. Same changes in both tunes (AFAIK Dorian mode throughout).
View attachment 4543985
View attachment 4543986
If you look in sheetmusic direct, the “So What” transcription has one flat in the key signature and accidentals are used throughout.
.