Things that are running out tend to seem more desirable.
"Only two rooms left at this price." Phrases like this create a sense of urgency that pushes us to decide quickly so we don't miss the opportunity. We perceive a resource as more valuable when it's less available.
In an experiment with 180 students, Mittone and Savadori offered everyday items (pens, snacks, pencils, and key rings). For some, the item was plentiful, and for others it was scarce, because they had to compete for it with another participant. For two of the four item types, more people chose it when it was scarce. In a second experiment, with 171 people, those who chose the scarce item set a higher selling price for it than those who didn't, even though everyone thought its market price was lower than the plentiful one's. Online, Booking.com shows how many rooms are left at a given price, and eBay alerts you when an item you're watching is running low.
Limited availability creates a sense of potential loss. Without conscious thought, we tend to reason "if something is scarce it's because everyone wants it, and if everyone wants it, it must be good."
Source: Mittone, L. & Savadori, L. (2009). The Scarcity Bias. Applied Psychology, 58(3), 453-468. Booking.com case: Competition and Markets Authority (2019). Online Hotel Booking. GOV.UK.
Limited spots in a training program, slots for a social benefit, or units of a product only work if the scarcity is real. Using it falsely damages trust and can lead to trouble with regulators. In 2019, the UK competition authority secured commitments from Booking.com and other booking sites to fix messages (such as how many rooms are left) that could give a false impression of availability.
Related concepts