Here's why:
* Elements are the simplest pure substances and cannot be broken down into simpler substances by ordinary chemical means.
* Compounds are formed when two or more elements chemically combine in a fixed ratio.
Since passing an electric current results in the production of oxygen and sulfur, the original substance must have been a compound containing both oxygen and sulfur.
Let me know if you'd like some examples of compounds that could fit this description!