The thing is, that unlike a country, a planet can be indefinitely blockaded for minimal cost (vastly less than it would be to invade). Going from surface to orbit is massively inefficient, so odds are pretty good that your ships won't use planetary bases anyway. Once any planetary defenses are neutralized (and whatever you think about bombing cities, no one would have a problem bombing a Star Wars-esque planetary ion cannon), all it takes is a single ship in orbit to drop a bomb on anyone looking to build a spaceship or an anti-space weapon, and the planet is essentially neutralized.
The reason you can't do that today is that land borders are naturally more porous; it's hard to stop the flow of people and goods across a border without some sort of occupying presence, and it's easy to hide a weapon that can threaten a helicopter flying overhead. On the other hand, distances in space are sufficiently vast that your one patrol ship could easily see any smuggler coming with more than enough time to spare, and building a weapon capable of seriously threatening a ship in high orbit would be much more difficult to camouflage.
A better comparison would be island-hopping in the Pacific during World War II. Unimportant islands can and were bypassed with no problems, and their garrisons left to starve. It's true that there was plenty of hard fighting over various small islands, but it generally came down to either securing bases or denying bases to the enemy. In a universe where a base doesn't have to be (and honestly probably won't be) located on the surface of a planet, fighting on the planet itself would be ridiculously inefficient.
Don't forget that invading and occupying a planet would be a massively expensive undertaking; most occupation forces in modern times seem to have historically been on the order of 1% of the population of the area they were occupying. So for occupying earth, we'd be talking about roughly 100 million soldiers for occupation duty. That's a massive undertaking, and really hard to justify. And that's just the occupation force; the actual invasion would probably require more troops initially. Much better to leave a few ships in orbit, and keep the planet under guard. It's not like it can slip away.