The owner of the property is responsible for all taxes and fees (including HOA). When a bank takes back a property, it assumes all the the costs of ownership.
The problem for HOA's is that the banks typically do not pay the HOA fees until the property is resold, and then the HOA gets all...