Question: why were the alpha particles deflected by the nucleus and not attracted to it?
Answer: Originally Rutherford thought that the particles would fly straight through the foil. ... As the positively charged alpha particle would fly through the foil it would come in proximity with the positively charge nucleus of the atom. This in turn either deflected the particle or adjusted its path.