That's always been the case in the condos I've rented. I've always rented through the juristic office in the complex.
Move in, pay months rent and a month's deposit.
On moving out, the condo management read the meters, and check condition of the condo. My deposit has always been returned, less the electricity (in my case last March was at 6.5b per unit) and water, and a cleanaing charge. Presumably if there was any damage we would argue over the cost 😀
I make sure the office know at least a week in advance of when I am leaving, and remind them regularly in the last week.
During my stay I'm issued with a monthly government bill for electricity used, and pay that at a 7-11. This bill is given to me by the management office, but is an official government slip. Obviously if I'm moving out on the 20th, and the government bill doesn't come until the 28th, keeping money from my deposit means the management can pay the bill on my/the owners behalf when it arrives.
I'm happy for them to take the required amount from my deposit... means I don't have to have funds available on the last day of my trip