Some time after the RigVeda was written, stories were told about the asuras and devas that made them not friends any more. A similar thing also happened in the Avesta. Only that the two groups had been switched: The Asuras became demons in regions where North Indian languages were spoken, and the Daevas became demons in regions where Iranian languages were spoken.