CRT monitors are basically giant antennas for electromagnetic noise, which is exactly what you're running into. Your microwave generates radio frequency energy at 2.45 GHz to heat food, and that energy doesn't stay neatly contained - it radiates outward in all directions. The long cables connected to your monitor act like little pickup coils for that RF noise, and since CRTs refresh the screen by sweeping an electron beam across it thousands of times per second, any electrical interference gets turned into those flickering lines you're seeing.
Here's the thing though: everyone's focusing on the cables, but the real culprit is usually your monitor's power supply and video cable together. The power cord brings the noise in from the wall, but the video cable - especially if it's an old unshielded one - is what actually carries that interference directly into the monitor's circuitry. If you want to test this, try moving the video cable away from the microwave or wrapping it in some aluminum foil (grounding one end to an outlet's ground pin with a short wire). That usually helps way more than people expect.
The bigger issue is that older CRTs were never designed with the amount of wireless interference we have now. When your monitor was made, microwaves weren't as common in every home, and they had fewer safety regulations about RF leakage. Modern devices have better shielding, which is why you don't see this problem as much anymore. If it really bothers you during retro gaming sessions, keeping the microwave at least a few feet away or waiting until you're done playing is the simplest fix.