The idea
contain: paint clips descendants to the box's padding edge, and it also makes the box a containing block for absolutely-positioned children. The child below is absolutely positioned — without containment it anchors to the stage, but with contain: paint it anchors to the box.
This level needs contain — paint containment is the whole point.