The exact reason why a child or a person gets affected with eczema is unknown. There are some may therapies and studies which says that it is due to genetic factors or it is due to auto immune factors or there is some triggering factors can be dust, pollen, soaps what we use. These are the triggering factors but not the causating factors for eczema and how it spreads nobody knows.
source