Why no computer code for 2008 Kia Spectra that stalled? What happened? on 2008 Kia Spectra

Was driving 2008 Spectra5 (79k miles) when car stalled, lost power, electric, brakes, everything. Check engine light came on. I pulled to side and restarted. Now everything is fine. Mechanic checked computer, but no codes registered. What is this?

Asked by for the 2008 Kia Spectra