There are metal brackets inside the NES on each side that hold the posts in place and allow them to rotate.
@retrogamefinds