LP tokens are used to keep track of the share of the pool that a provider owns. The provider may choose to remove their contribution at any stage. Decentralized exchanges will provide rewards in exchange for staking crypto and adding to a liquidity pool.