Schools are funded by the national government in Japan. These families are not a net-loss on the community, as the parents pay taxes and children are a driver of economic activity.
TIL. Seems like it's a mix between national and municipal funding, but that doesn't really change the overall calculation, as the parents will have most likely paid it back through their own municipal taxes.