Corporations are not always bad, but they have an overriding goal of increasing profits and the easiest way to that goal is to cut costs (and corners). As a result, corporations not infrequently skirt regulations, break laws (with fines generally less than the profits gained), exploit workers, and harm the public.
And, for that matter, child labor is by no means extinct, as you imply in the article. In the US it is much less common than (say) in the 19th century, but corporate misconduct seems to me to still be common.