Why numerical analysts keep this one around
An oscillatory integrand is a direct challenge to methods that sample too coarsely. If positive and negative lobes are missed or represented unevenly, the numerical integral can look confident while the geometry between the nodes was never really observed.
This is a useful comparison problem because Simpson, Gauss-Legendre, and Monte Carlo spend evaluations differently. None of them gets to know the function between evaluations for free.
The example also keeps the discussion honest about cost. A method can become accurate simply by throwing enough evaluations at the problem, but that is not the same as spending those evaluations well.