Exactly. Magic—effective magic—was nascent technology and chemistry. Wizards weren't scientists, mostly, but they were technologists and craftsmen.None of those guys did supernatural 'magic' nor were they 'really' wizards. Anything claimed as supernatural magic involves deception, misdirection, illusion and trickery.
There is no magic or wizardry required to understand electricity or the electrical sciences. It's pretty basic if you're willing to take the time and effort to try.
They did some useful things, but kept the details secret and obfuscated the actual technology to keep the monopoly. But... today's "wizards" do the same thing, it turns out.