Maybe when you left he started jumping up and down trying to look for you and landed on his leg wrong? Maybe? My little guy jumped off the couch last week and sprained his leg, so that's why I thought of it. I know that's a little different then jumping up and down, but they can jump pretty high!
Just a thought.