Every time a user swaps within a Raydium liquidity pool, a 0.25% fee is taken on the trade. 0.22% of that trade goes back to the LP pool. 0.03% of that goes to RAY staking. Fees deposited into the LP pool increase the number of tokens that you get back when you withdraw liquidity.