If you are using PDF (Print) check the compatibility and standards settings.
Haven't you changed the "Paper" color value to green ? So it would be drawn inside InDesign but not part of the PDF export.
Or you may have set your rectangle to be non printable.
How did you apply the background color.
Show us a screenshoot of the opened Layer Panel, all Layers extended when the Master A is shown.