An a.c current changes direction with the source frequency and the attractive force would average to zero. Thus, the a.c ampere must be defined in terms of some property that is independent of the direction of current. Joule’s heating effect is such property and hence it is used to define rms value of a.c.