How does PHH Mortgage know what amount to pay for my taxes?

The taxing authority provides the amount of taxes to pay.