Hernandez left with his team down, and his team never tied it up. The team would have had to tie it up or take the lead at some point to make sure Hernandez didn't get the loss, and they never did-they got down 5-0, and they closed it to 5-4 but never got it tied. Which is one of the many reasons why W-L record is a dumb way to judge a pitcher's value.