Someone please explain cat-nip to me.

I'm missing the point. You just get your cat high? What exactly is it? I bought my cat a scratching toy and it came with a little bag of cat-nip.

I'm not trying to come off as rude or anything, I just genuinely don't understand it.