My daughter doesn’t want to leave the house anymore.

Hello my 6 year old daughter soon to be 7 has now all of a sudden refuses to leave the house and will protest not to leave at first it started where she would stop walking and I would have to carry her then I had to get Ubers to the places we needed to go I.e school, shops, appointments and even family members but now she point blank will not leave the house and I can’t understand how this has got like this and what I can do to get her back out the house as she use to love always going out.