Why is the dislike of Islam considered racism when the dislike of the ideology has nothing to do with race?

Why are people called racist or Islamaphobic if they don't like the idea of Islam?

Please tell me if those questions are the same.
Options are: -no. -yes.
no