Background properties do not inherit, but the parent element's background will shine through by default because of the initial 'transparent' value on 'background-color'.
So, as the children elements have transparent backgrounds by default, the background color from the parent will shine through.
Source: https://www.w3.org/TR/WD-CSS2-971104/colors.html#:~:text=Background properties do not inherit,on 'background-color'.