After Dr. Cox asks why Ben doesn't have his camera with him, J.D. arrives and brings Cox to the realization that not only is he not actually attending his son's birthday party, but also that Ben is not present.
J.D. shows up after Dr. Cox asks why Ben isn't carrying the camera; this leads Cox to understand that he is not attending his son's birthday party, and additionally, Ben is missing.