Local government put a lien on my home because the previous owner didn't pay their sewage bill. Is this even legal?

I woke up this morning and checked my mail and found a letter addressed to me from my local government. The letter was a notice of water shutoff and lien being placed on my home due to a delinquency of payment. The billing period cited for nonpayment was from January 2020 to April 2020. My wife and I bought the house at the end of March 2020. The letter stated the charges are against (previous owner's name). The letter was, however, addressed to me. I have until the end of the month to pay the balance, or they are going to start an eviction process and sell our home. I called the office for my local government and told them I did not own the property at the time of the bill and did not receive any notice there was an unpaid balance until today. I also expressed that I should not be responsible for payment due to not owning the home at the time. The person on the phone told me that the way the law works in Pennsylvania allows for this sort of thing. I was told to speak to my realtor, and when I called them they told me to contact the closing agency. I can't find our documentation so I can call them.

This can't be legal for the local governnent to do. I've paid all my bills early every single month. How can they get away with pushing someone else's debt onto me?
Local government put a lien on my home because the previous owner didn't pay their sewage bill. Is this even legal?
Post Opinion