Infected rats lose their inborn fear of cat urine, and some become drawn to it. The parasite forms cysts in brain regions that include the amygdala, the fear center.
The parasite can only breed inside a cat. So it rewires the rat to walk toward the thing that eats it.