Why can a downspout separate from the gutter or wall?
The top elbow has pulled away
Ask whether the gutter itself moved, whether the outlet connection remains sound and how the replacement or retained elbows will be supported. Reconnecting the top without checking the gutter can leave the original movement unresolved. Photograph the whole corner from the ground rather than only the open joint.