Most likely because you didn't let the gelatin dissolve fully. This is really super important to make sure you get a deliciously smooth panna cotta.