Just because it has feet doesn't mean it's standing. Levitate means to hover above the ground, which is basically what it does. Gengar also appears to stand and Carnivine is a plant (normally rooted in the ground!) and they both have Levitate too.
Remember, some birds appear to stand on the ground but also avoid Ground-type moves. Think of it like they can raise themselves off the ground quickly to avoid those attacks.