The story
By analogy with the idea of thinning liquids such as soup or paint (e.g., paint thinner), although the name is a misnomer in that these medications do not reduce the blood's viscosity but rather inhibit its clotting.
Etymology from Wiktionary, CC BY-SA 4.0.