Why is AgCl not soluble in nitric acid while Ag3PO4 is?

One reason may be that H3PO4 is a weak acid while HCl is not.