Cats usually pull at people's legs as a playful behavior or because they want your attention. Sometimes, they may also be looking for prey, as their nature is to hunt animals. If your cat frequently pulls at your legs, you can try providing alternative play objects, such as a scratching post or a tactile toy. This will help it release its excitement energy and also prevent it from continuing to pull at your legs. If your cat is pulling on your legs to get your attention, then you can try to give it some attention before it pulls on your legs, such as giving it some games or playing every day. This will help him feel like he's getting enough attention, which will reduce his tendency to pull at your legs.
In general, a cat pulling on a person's legs is usually a normal and harmless behavior, but if you feel that it often pulls Your legs are causing you discomfort, so try the methods above to reduce this behavior.