“petty”
I’d guess that “petty” indirectly came from the masculine form of the French word, « petit », because the second T of « petit » is silent (which is reflected in the spelling pronunciation of “petty”), and because the English word “petit” (with the same pronunciation as “petty”) is still found in legalese, e.g. “petit larceny”.