Mass spectrometry turns molecules into charged particles and measures their mass. If the measured mass matches the expected mass of the peptide, the lab reports the identity as confirmed.
On a COA, mass spectrometry answers "is this the right compound?" while HPLC answers "how pure is it?". A report with both is much stronger than a report with one.