Legally it's up to your discretion, though the NSPCC recommend not leaving a child under 14 to babysit for younger children. It would probably be quite unusual to have a 13 year old providing regular afterschool care for a 5 year old like this and neighbours/the school might raise concerns.