From a Vulgar Latin *erctus (as the perfect passive participle of *ergō, whence Spanish erguir) for Latin ērēctus, perfect passive participle of ērigō (“to build, to erect”). Compare Italian erto and Spanish yerto.
ërt