PancakeSwap is an exchange, even though it is a decentralized one, and the most basic function it supports is trading in BEP-20 tokens. LP tokens will be given to liquidity providers that enable trading for other BEP tokens. It is very similar to crypto trading.