2005 Scion xB dashboard warning lights

Hey - I got in my car to drive to Auto Zone and get the codes tested, and NOW THE DASHBOARD LIGHTS ARE ALL OFF - except for the “maintenance” light. I beat feet to an emission testing station to get the car tested before the “check Engine” light came back on, and it DID pass. then I drove the car various places for about 2 hours and the lights remained OFF !!! That’s good, but how can you explain that? thanks to all of you for your help.