This is a marketing tactic known as The goal is to scare you into purchasing a subscription or downloading an app.
If you see a McAfee pop-up on your iPhone, it is almost certainly a scam notification from a website you accidentally allowed. McAfee itself is not targeting you. You can stop it completely in under 2 minutes by disabling browser notifications. why does mcafee keep popping up on iphone