M.Yasir,
I think the codes could happen to occur when a car does not start and one tries to crank it over. When the car could not start up at all, I think the ECM was thrown a bunch of incomplete messages (reports) and result a bunch of bad reports.
It happened to me once when my car did not start and reading codes gave me a long list (O2 sensor, ... you name it). But it was MAF problem. I replaced it, reset all the codes and it was fine.