It is much more convenient to recharge a battery than to get out a huge extension cord, even for non-professionals. The battery ones are cheap enough for most, even if you just have a small driveway but a neighbor's very large tree to worry about.
Yep, unfortunately this is why people will happily spend 5x as much for a vacuum cleaner that's much less powerful (and basically a dustbuster), just because it's cordless.