Nine times out of ten the computer does not know the childrens ages.
No, but the computer knows that they are children.
There is absolutely nothing, from a programming point of view, to stop this sort of thing being introduced, apart from airlines not being willing to pay for it. It's not hard - children on booking, seat next/near to adults on booking.