The story
Modern sense coined during the COVID-19 pandemic as a reference to rats being a common carrier of disease, possibly also looking at the role of rats in the Black Plague and influenced by the use of "rat" as a derogatory insult in general.
Etymology from Wiktionary, CC BY-SA 4.0.