Why is a meme compared to a gene?

A meme is compared to a gene because it can self-replicate, mutate, and respond to selective pressures similar to that of a gene.