Rivers were wide and shallow until the evolution of treelike plants, which got the waterways into line. Christopher Intagliata reports