Agreed - a boiled egg is absolutely safe after a day. Had many I've "acquired" at hotel breakfast buffets, and left at the bottom of my backpack. Only to consume +1,+2 days later.
I think the author meant well with their security metaphor but overindulged in the classic overthinking engineer and food safety.