[1] In a garden where cats are to be found, sheltered areas can often reveal the "wild" results of kneading: round, cat-sized nests trodden into long grass.
In some cases, cats have been observed to exhibit sexual movements, not unlike a dog "humping" a human leg, accompanying the kneading and suckling.
Kittens who are taken away from their mothers before they are fully weaned may also develop a habit of kneading a human whom they have adopted as a maternal figure, and may also attempt suckling their ear, eye, nose, toe, hair, shirt, socks, or fingers.
[2] Kneading may have an origin going back to cats' wild ancestors who had to tread down grass or foliage to make a temporary nest in which to rest.
Alternatively, the behavior may be a remnant of a newborn's kneading of the mother's teat to stimulate milk secretion.