There are numerous scenarios where the house is worth less than zero dollars. For example when there's a large overdue tax bill attached to the property.
Or it's in extremely bad repair and will need to be torn down before you can rebuild on the land. If you look at listings for land, a surprising number of them are actually listings for "houses not fit for human habitation".