It is pretty amazing that you'd get so dehydrated you didn't notice until you fainted at home.  Working hard outside, yes.  Running a marathon, yes.  Most likely either 1) you're restricting unhealthily or 2) the hospital was wrong.  What color was your pee?