I guess, this may be related to code overlays, where a new, task specific code segment is loaded from disk or tape to replace an existing one. This was a technique much more advertised for the PET than for any of the later models.

In order for this to work, the new segment has to exactly match the address range of the existing segment, otherwise, the link structure of the BASIC program (which is really a linked list, referencing the memory address of the respective next line) would be lost, and maybe any existing variable data (which follows immediately on top of the BASIC program in memory), as well. It would make sense to adjust for this by including REM statements, which would allow for minor modifications without a need to recreate all the other segments according to a new load address. (Mind that on the PET, all programs were loaded absolutely, just like with a secondary load address of "1" on the later 8-bit systems. Relative Loading, i.e. the automatic relocation of BASIC programs, only became a thing with the VIC-20 and its different and also varying BASIC start address. So memory overlays may have been more "natural" to the PET environment. Moreover, PETs – apart from those with the very first ROM version – came with a built-in monitor in ROM [dropped on later models to make room for color support], which would have facilitated saving dedicated RAM segments and made this technique more accessible.)

Anyways, the very fact of the removal of these REM statements leading to a corruption of these programs hints at self-modification by one mechanism or another. E.g., a machine language routine may have been assembled from DATA statements into the locations reserved by a REM statement, which would inevitably result in memory corruption, if these statements would have been removed or changed in length.
(A reason for doing it this way may have been to avoid the scylla and charybdis of the growing variable stack on the one side of free memory and the growing string stack from the other, top side, without a need to to adjust for varying memory conditions. Notably, this wouldn't have been a thing on the C64, which already came with a full memory complement, but would have been an issue on the PET, which came in configurations of 8K, 16K, or 32K [and, initially, just 4K] of RAM.)