According to the law, it is illegal to dispose of hazardous waste in the garbage. Human fludis and solid waste are considered hazardous waste, posing various biological risks. Thus, you shouldn't throw poop in the garbage.