Stop in for a cup of coffee

why is it that we "take a crap" when we're actually leaving something behind?