This could certainly be due to a psychological problem but first you have to make sure that she does not have a bladder infection or other problem. So she needs to see your paediatrician first in order to make a proper diagnosis of the problem.
The information provided does not constitute a diagnosis of your condition. You should consult a medical practitioner or other appropriate health care professional for a physical exmanication, diagnosis and formal
advice. Health24 and the expert accept no responsibility or liability for any damage or personal harm you may suffer resulting from making use of this content.