What did you eat before you worked out?
This could be caused by so many things - you needed a snack, you were dehydrated, you didn't get enough sleep, you are coming down with a cold etc, etc.
If you are concerned, or if it happens again, you should definitely see your doctor. Better to...