When Jesus entered the temple, he saw money changers and merchants selling animals for sacrifice. The reason for this was that pilgrims carried coins from their hometowns, most of which had images of Roman emperors or Greek gods, which were considered idolaters by the Temple authorities. To pay the Temple taxes, these coins had to be converted into the accepted currency. The money changers provided a service to the pilgrims by exchanging their coins for the currency accepted by the Temple.
This allowed them to pay their taxes and purchase animals for sacrifice without having to worry about having the wrong type of money. The money changers also made a profit from their services. They charged a fee for exchanging the coins, which allowed them to make a living. This was beneficial to both the pilgrims and the money changers, as it allowed them to conduct their business without any problems.
The presence of money changers in the temple was an important part of religious life in ancient times. They provided a necessary service that allowed people to pay their taxes and purchase animals for sacrifice without having to worry about having the wrong type of money.