Hand eczema occurs when the skin on the hands is cracked and inflamed due to contact with substances like rubber chemicals, detergents, or hard water.