A guess: it’s probably just heuristics based on things being panic-bought, high demand, suddenly high number of searches, etc. Obviously they don’t “know” some subset of essential items, that would be difficult, error-prone, and they would inevitably miss certain things which would lead to complaints and bad press.