It describes the kind of motion the gate always does when being opened. The sentence would be fine without the "swung" part but with it the action (of opening the gate) sounds more emphatic. A key turned in the lock and the heavy gate opened.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.