Something like that happened to me, once. I had pumped up the tires and then gone for a ride, with no problems. The next morning, a tire was absolutely, totally flat. The bike had spent the night in my apartment, with nobody but me present, so there was no possibility of a prank. I pumped up the tire, and it never had a problem again. My guess is that there was a tiny speck of dirt in the valve.