On #Windows NT and its descendants, command prompt windows have scrollback. You can scroll up to see earlier output, up to however many lines you've configured it to keep.
But on pre-NT Windows, this was not the case. An #MSDOS window contained a full-blown virtual machine, akin to DOSBox or QEMU. What you saw was the contents of its virtualized video memory, which cannot scroll.
#RaymondChen at #Microsoft explains in this installment of #OldNewThing. https://devblogs.microsoft.com/oldnewthing/20241022-00/?p=110401