This is an interesting question. My Daughter was about 8 whe she started feeling pain in her ankles. We also chalked it up to growing pains, but her pain worsened enought o start limiting her activities. we had to search for a doctor that would would pay attention to this child, but eventually we got to the bottom of the problem. She had some bones that were growing abnormally and fusing to other bones in her feet causing limited range of motion and alot of soft tissue pain because the bones had also disrupted the soft tissue in her ankles.
There are many problems that can give a child this age pain in her joints. Many of which are simple to remedy. Is she wearing good, supportive shoes? Is she doing alot of tumbling? However, if her pain persists, causes tears, or seems to be limiting the activity she is interested in participating in, you should get her to a pediatric orthopedic specialist, pronto! Growing pains can be relieved with heat packs, extra calcium, and rest. At 5, she seems young to be having "Growing pains", but she may be sensitive and more aware of her body than most children. If she seems miserable, i wouldn't wait to get her to a doctor.