They explain different phenomena. We observed that *all objects with mass* attract one other, with the strength of the attraction being proportional to the masses of the objects, and we named this phenomenon gravity.
We also observed that *some objects* exert a force on other objects that can attract or repel, and that this force is not directly tied to the mass of the objects involved. We also discovered that moving these objects can create an electric current, and that electric currents can exert a force back on these objects. We named this phenomenon electromagnetism.
Electricity and electromagnetism both produce forces over distance, but other than that they have little in common and they’re easy to tell apart. Gravity only attracts, while magnetism can repel. Gravity is always on and has no connection to electricity. Gravity is also much, much weaker overall, and only dominates the universe because most objects are electromagnetically neutral.
Latest Answers