You can look up the clinical trial endpoints. Patients were only tested for infections if they experienced symptoms. I believe it was only AZ or J&J that regularly tested to capture any effect on infection rate.
But it was stated several times "The vaccine will stop you from getting Covid". Why? Because if you tell people "Well, the vaccine won't stop you from getting it, but it will make it less likely you'll get really sick", they thought people wouldn't take it.