He put those whittled sticks near the water. As soon as those animals came to the water they saw those sticks. When they came close to the water they used to mate.