Gaining weight after an illness is a common and temporary response caused by fluid retention, hormonal shifts, reduced activity, and medication effects.