Why does the kitchen sink gurgle when the washing machine drains?

Because the washing machine drains down the same main drain and it's suction as it goes by is trying to suck the water out of the under sink U trap.