Why did Taylor swift write shouldve said know?

"Should've Said No" is about a guy named "Sam" that cheated on her and really shouldn't have and could've said no, and not cheated on her