The auction
Every time someone opens Facebook or Instagram, there's an ad slot available and Meta runs an auction to decide which ad to show. The highest bidder doesn't always win: the system takes into account your bid, how likely that person is to do what you want (click, buy, fill in a form) and the quality and relevance of the ad. A good, well-targeted ad can beat one with a bigger budget.