Most of it isn't really an attack on games at all — it's concern about how much time people spend on them. Excessive play does have real costs, particularly around sleep, physical activity, and school or work, and that's what the criticism is aimed at.
So the message is usually closer to "cut back" than "stop entirely." Games are a legitimate form of entertainment with genuine benefits, from problem-solving to social connection; the issue is balance rather than the medium itself.
It's worth adding that this conversation has recurred with every new form of entertainment, and the specific target changes while the underlying worry about excess stays the same.