Rocks will go into your inventory and trees not because when you break the rocks in distance with a gun for example then the rock will be on the ground as rock items that you can collect. When you shoot the trees then no tree items remain on the ground. So when trees are broken then there is nothing left to collect. For your situation, you should use some mods for wood production. It is much more efficient than driving over trees anyways.