A compromised skin barrier, which prevents the retention of fats and oils, while promoting water loss, causes eczema. Scientists don't know why this happens, but genetics may play a role. A familial or personal history of asthma or hay fever are risk factors.