Why does particle size affect EM radiation scattering

It is my understanding that electromagnetic radiation is absorbed by an electron and then emitted at another angle. So why does particle size affect scattering when the phenomenon involves electrons? Also, why does the size of the wavelength of the light relative to the diameter of the particle matter?

Simon Bridge