Why is operating system a mandatory software?
There are different hardwares. Many more hardwares are about to come. Its not possible for each hardware to support each type of software. But the possible things is there should be an universal software which should be adopted by each and every hardware.
And that universally adopted software is operating system.