Cats like catnip because it contains a chemical called nepetalactone, which mimics cat pheromones and triggers a euphoric response in their brains. This compound binds to olfactory receptors when cats smell or rub against catnip, causing behaviors such as hyperactivity, rolling, rubbing, or even relaxation. The effect typically lasts about 10-15 minutes, making cats feel good or euphoric temporarily. Not all cats react to catnip, as sensitivity to it is genetic. Essentially, cats enjoy catnip because it provides a stimulating and enjoyable sensory experience that affects their mood positively.