Perpetual contracts, also known as inverse swaps, have an embedded rate usually charged every eight hours. This fee ensures there are no exchange risk imbalances.
Even though buyers' and sellers' open interest is matched at all times, leverage can vary, and when buyers (longs) are demanding more leverage, the funding rate turns positive. Thus, they are the ones paying the fees to the sellers (shorts).