A private residence is not a public, taxpayer supported government building.
The two cases are very different.
It is also a case of private property rights.
Who owned the Mexican flag and who had a right to take that property.