It works in your house because the neutral and ground are tied together either in the breaker panel or someplace along the way in the house (not preferable at all). Common in older houses, but not all localities permit that, especially those who have rigid and vigorous code enforcement.
Noah