I got a text from at&t that says tired of receiving unwanted calls does that mean my iPhone has a virus or something?

Then it says download at&t call protect app? I just don't understand why I randomly received this text.

Is AT&T your provider? Then it wasn't random - they're advertising a new feature/service to you.

You can either ignore it or check it out.

It is called "spam" or unwanted advertisements. AT&T is trying to sell you a call / text screening program that will block callers that you put on a list. They will charge you an additional monthly fee for the service.