ett barn = a child
barnet = the child
barn = children
barnen = the children
Ett barn äter ett äpple. / A child eats an apple.
Barn äter äpplen. / Children eat apples.
Barn is countable, so it needs an article in the singular, like in English. The word "child" can't stand alone.