When cats knead, they are actually marking their territory with their scent glands. They may also be kneading as a way to express contentment or to relieve stress.