Petty officer has 2 different meanings across 1 category:
Noun
a noncommissioned officer in the Navy or Coast Guard with a rank comparable to sergeant in the Army
A non-commissioned officer in the Canadian, US and UK Navy and the US Coast Guard; roughly equivalent to a sergeant in the army