On public blockchains, bots see your swap in the mempool and pay higher gas to get in first. It is one form of MEV.
DeFi
Front-running
In shortPlacing a trade just ahead of someone else's known pending trade to profit from the price move it will cause.