The data owned by the pad isn't shared with the standard screen (stdscr)
The manpage:
A pad is like a window, except that it is not restricted by the screen
size, and is not necessarily associated with a particular part of the
screen. Pads can be used when a large window is needed, and only a
part of the window will be on the screen at one time. Automatic re‐
The mvchgat updates the standard screen, and the wgetch causes a refresh
on the standard screen.
So the updates to the standard screen overwrite the pad.
Think of it as something like a newwin - making updates and refreshing
one window will overwrite other windows that it happens to overlap.