Lots of things can cause a foot cramp - walking all day in high heels or poor shoes, over exerting yourself/fatigue, minor strains/sprains.
They are very common. If it's happening just once in a while, just gently stretch and massage
the spasming area. If it's happening all the time, get it checked out by your doc!