On the whole children are low risk of getting seriously ill and some of the worst affected by lockdown in terms of development and learning and potential abuse in the home, so as a group they have a lot to gain from going back to school. Clearly for some children with severe health needs that are shielding this is not true but policy has to do what is best for the majority and for children that is for school to open.
Teachers are different , different age populations and risk factors. For teachers going back is of little benefit and increased risk at present, however longer term if wages cannot be paid then going back to work will become important. This risk can be mitigated with PPE, spacing of children, non child facing jobs for the most vulnerable, shielded teaches working from home, increased cleaning etc
With regards to the wider country there are positives and negatives. Community spread from Children going to school is an unknown, may be beneficial to get a second peak before autumn, may be a disaster. Could be mitigated by more use of busses and children walking to school alone - maybe supervised by older children? Economy wise to get much of the workforce back in work and start making money to pay for all of this social care and stuff needs children back at school and childcare.
Medical wise, if and this is all speculation this disease works a bit like chicken pox, having it younger may mean that children are less likely to have it severely when they become older. Also with the Spanish flu those that got it in the first wave were “lucky” as the second wave was a lot worse.
Conclusion on the whole lockdown is harmful for the majority of children who have the least to loose from getting the virus but beneficial to the vulnerable and elderly who are much more at risk.