I used to think my fish caught and ate my shrimp, but later observation showed me that the fish only ate shrimp that were already dead. Perhaps your shrimp died from some unknown reason (disease, stress, old age, water chemistry changing, etc) and the goby had a nice treat.