The term MSM was coined by the agencies themselves, to define by behaviour not identity.
No-one calls themselves MSM, so you target the group that encompasses MSM.
PHE only uses MSM.
NAT uses gay men and MSM interchangeably.
Remember bisexual men are included in MSM.