Original application: I invented A, B, C, D, E, and F and want A protected; here’s some $. Follow-up application 1: I want invention B protected, here’s some more $. Follow up application 2: I want C protected, here’s some more $.
Part of the idea behind it is that you don’t have to waste money protecting parts of what you invented that don’t pan out (additional claims cost additional money beyond a certain number of claims). It’s not particularly fair, since you can watch what a competitor does (as Nintendo has done here), and essentially backdate a patent as though you had filed for it before the competitor did their thing.
Company A might have known about the application, but was confident that it would not be issued or defensible.
Things like "obviousness" and "prior art" can be hard to judge unless you're a patent lawyer... or a judge.
Yea, examiners will grant patents that might have no chance in court. So what tends to matter more is not whether someone has a patent, but whether it was successfully used in court.