Why do my feet muscles hurt?

Depends. It may be due poorly fitting shoes, being on your feet too long, may be a manifestation of arthritis. If the malady has persisted for more than two weeks you may wish to see a podiatrist.