In the 19th century, Maxwell figured out that you can't explain electromagnetic phenomena in terms of the existing fundamentals — space, time, mass, Newton's laws — so he postulated fundamental laws of electromagnetism and postulated electric charge as a fundamental element that those laws govern.