Because this was during the battle between Heaven and Hell. Spawn went to a place called "The Greenworld" Where he was given the power of both sides and since when Spawn died, 400 others died with him and their souls were fused into his body which is why Malebolgia could not force Spawn to do his bidding. These powers he was given were used to end the war and enable him to take control over Hell and the Earth.