Quantum mechanics tells us that the exact time at which inflation ends is uncertain, which means that it ended at slightly different times in different regions of the sky. These tiny quantum effects were imprinted in the radiation as small deviations from perfect uniformity.
Ok, the universe was homogenous when the inflation began, and the tiny wobble of the inflation ended created the imperfections and differences from one region to another.