Shouldn't modern tanks be able to deal with swamps and forests? The treads are intended to be more all-terrain than wheels. There are swamps next to the highway when I drive to work and those have fairly shallow little rivers. A tank could easily drive through it. And a tank could easily drive through a sparse forest.
It's more a gameplay decision, to give more interest to infantry, marines and paratroopers when fighting in rough terrain