A combination of things: it was original, it had a sense of humour, and it was exceptionally well put together for its time.
There's also a snowball effect at work. Once something gets popular quickly, the attention itself drives further popularity — Doom benefited enormously from players sharing it and building their own levels for it.