They did and gave him plenty of opportunities to remove his hat, but he refused.
He was being insubordinate and his hard-headedness cost him his job. Doubt he'll find someone to take his case unless he can demonstrate that people are currently wearing Biden/Harris ball caps to work without censure.
Easy... Just line up everyone with a single-digit IQ and check their apparel...