Temple commerce and the money-changers
In the outer court oxen, sheep, and doves were sold for the sacrifices, and money-changers exchanged foreign coin for the currency accepted in the temple. It was an intense economy, especially at Passover; that is what Jesus overturned.
Where it comes from
Pilgrims needed approved animals for sacrifice and had to pay the temple tax in acceptable coin, so a market of sellers and money-changers grew up in the outer court —convenient, but turning the space of worship into commerce.