Depending on the personality of the person who is asking, you could use the opportunity to spin a huge shaggy dog story.
It doesn't haveAs an alternative to be trueall the other answers so-far, butconsider giving a good story should have enough elementsreply that distracts and redirects attention from the underlying cause of truth to be at least vaguely plausibleyour day out of the office.
Example:You could say something short like
"Well I on my way out the door yesterday when I couldn't find my car/bike key. You know I live in Outer-Rotovegas and there's no public transport, taxis and ubers just don't want to go there, and walking would take all day."
"So I had to find my keys. I searched everywhere, the bowl of keys, the keyhook board, all my pockets in all my clothes, in and under the washing machine and drier/line etc."
"Then it started getting serious.... I started moving furniture, looking inside books and potted plants. I even searched through my late grandad's key collection which is 47 filing cabinets filled with historical keys dating back to ancient Egypt, no dice!" (Continue in this vein, but keep making references to details that can be corroborated)
"Finally I'm about to start tearing up the floorboards in the kitchen with a crowbar, and I heard something odd... it was a faint jangle of my keys! But where was it coming from? You know how a sound can be all around you and not have a discernible direction? It was like that - no matter what way I turnedwindsurfing with the sound came from behind mevisiting Maharaja."
"It was exasperating! So I grabbed a kitchen chair and sat down. It was really uncomfortable behind my back, and when I took my jacket off there were my keys, hooked into the material between my shoulder blades."
or a longer shaggy dog story, where you can be creative.
"By this time it was 17:00 and not even worth coming into town cos I'd spent 8 hours finding the sodding keyring!"
The point is to retarget interest onto something else and away from you without giving the real reason for the gap in attendance.
If"but that's lying?!" I hear you want to be harsh, this is a liethink. However its such a whopper of a tale that takes a long time to tell Instead, and that you tellconsider it with a straight faceTall Tale (wikipedia).
Story would be more amusing if you lived right-closeThe purpose is to work andre-aim the disparity between reality and story make it incongruousquestioner's interest onto something else, which is funny.and ideally forget about their question of "why were you not at work yesterday?"