The aedile originated in the Roman Republic. At first, this position could only be held by the civilians. They were mainly responsible for the maintenance of the temple and the management of the archives. Later, with the development of society, the nobles could also work as an aedile. And at the same time, the power and responsibilities of an aedile had gone through some changes.
From managing the archives and maintaining temples to being responsible for the city's municipal administration, they maintained public facilities and even did public security work. In the republican era, the aedile was not paid. Often, they had to dig into their own pockets to pay for certain items. Like Caesar, he used to be an aedile. He ended up bankrupting himself, racking up considerable debt and was even prevented from leaving Rome by the loan sharks.
Of course, Caesar was no fool. He would not do something that was not going to benefit him.