Earlier, only static electricity was known. At that time scientists called that this happened due to exchange of some kind of invisible "fluids". These fluids became today what we call electrons moving in a specific direction , i.e. electricity.
Consequently, the term Electricity was used.
Today, the term electric charge is used for the same.