After you shear a sheep, it'll look for a grass block. Then, it'll eat the grass and immediately regrow its wool.