Even if they're not in the office, why did they mention "office"?
Sheldon and Kripke are playing basketball because they are trying to win a new office of a retired professor at the university that they both work at. In the show, Sheldon and Kripke are rivals in this show and are always trying to outdo each other. In this episode, Sheldon and Kripke decide to compete against one another for the new office. One of their friends ask what they are both bad at and they both say sports. They go to the gym and try to compete against each other in a game of basketball since they are both evenly matched in basketball.