How it works
A market order takes whatever offers are waiting in the order book. If the nearest offer covers only part of your order, the rest fills at the next prices, each a little worse. The larger the order compared with the book, and the faster the market, the bigger the gap. Stops are market orders once triggered, so they slip too, mostly during news or liquidation waves.
Example with numbers
You send a market buy for 5,000 units of a small coin showing $1.000. The book has 2,000 units at $1.000, 2,000 at $1.004 and 1,000 at $1.010. Your average fill is $1.0036. The slippage is 0.36%, about $18 on a $5,000 order, before fees.
The common mistake
Using market orders on thin coins and judging the trade by the screen price. On an entry of 2% target distance, 0.4% of slippage each way removes almost half the gain. Use limit orders where you can, and reduce size on illiquid pairs.