To stand up straight and tall, like a tree.
For example, when you see a flagpole, it is erect because it stands up straight and tall.