It seems like the towering Redwoods and Sequoias of the Pacific Northwest could grow to the edge of space, had they enough time. But it turns out that's not the case. Like with the enormous skyscrapers man has built, trees can only grow so high because of the logistics imposed by gravity.
In theory, we could build a skyscraper that's over a mile tall. But it would take so many elevators to move humans to the highest floors that there would be little usable space left, and with no space for businesses, it simply wouldn't be a profitable venture. And similar issues with gravity limit tree growth. Instead of moving humans, however, they have to move water to their highest branches. And with every foot this gets increasingly difficult, resulting in smaller and smaller leaves on its highest branches that are less effective at evaporation which is what pulls the water up the trunk.
So, while the world's tallest tree measures in at an impressive 377 feet, researchers believe that in ideal conditions with enough room to spread out their roots, a Redwood or Sequoia could reach a mind boggling 400 to 426 feet.