The term comes from zoology (stampeding animals); adopted by computing in the 1990s for concurrent load bursts.
The image comes from animal stampedes: a small disturbance triggers a mass simultaneous flight. In computing the term was used informally in the 1990s (thundering herd on file locks) and formalized in HTTP caching discussions (notably by the Squid project and Cloudflare). The W3C and IETF discuss it in cache-related RFCs (RFC 7234).
A thundering herd is when a large number of processes all try to acquire the same lock or hit the same resource at the same time.
— Beej's Guide to Unix IPC, 2024 (paraphrase)