When you align objects relative to each other by their edges, one of the objects remains stationary.
The Align Objects options in the right-hand panel let you precisely align multiple objects on a side - left, vertical center, right, top, horizontal centre, and bottom.