Why would capturing the HMS Serapis be considered an act of piracy? We were legitimately at war with the British; I’d think it would “spoils of war”.
Hadn’t won independence as a nation yet - though we had announced our independence and been recognized by France. If we had lost then he would have been considered a traitor pirate by the government in place.