They just come across a lot of content (typically on Facebook) that says "vaccine are dangerous" and "ivermectin is a miracle cure".
That's it. That's how it works. People respond to the information they consume. Disinformation *works*. People read things online & believe them.