The whole thing in one sentence: PLA goes soft at temperatures a working rack reaches, and PETG doesn't.
It's an ordinary situation. A Tuesday, cupboard door shut, something under load, summer afternoon on top. Nothing dramatic happens. Nothing melts. What you get is a slow sag over months, and one day you notice that the panel nearest whatever runs hottest has gone from flat to not quite flat.
You won't find a pair of temperatures on this page. Filaments vary between makers, published figures are measured in conditions that aren't your rack, and we haven't run that test ourselves. Which way round it goes isn't in dispute anywhere. PETG takes more heat than PLA before it moves.