Probably regressively derived from the verb păta. Compare the meaning in Spanish pinta (“small spot, dot, or stain”).
pată f (plural pete)