The nuclei of 238U can capture neutrons and beta-decay. With a large amount of neutrons available due to the fission of 235U, the probability for this process is substantially increased, resulting in a much higher decay rate for 238U and causing the depletion of 238U (and relative enrichment of 235U).