A five year old child is a person who has rights. If those rights are being trampled on, then it’s 100% appropriate for the child’s guardians to seek legal recourse on their behalf (provided that it can be shown to the appropriate legal standard that the guardians are acting in the child’s interest, which seems like it wouldn’t be difficult in this case). What the child would say with a soapbox isn’t the relevant question.