Their overseers create and redeem shares in the open market based on the level of demand from buyers and sellers.
The process of adding and subtracting to the supply of available shares allows them to move in tandem with whatever they're intended to track.