As action is defined as
$$S = \int_{t_1}^{t_2}{\mathcal{L}(q,\dot{q},t)}dt $$
For any time interval $(t_1, t_2)$.
As $t_1$ and $t_2$ are arbitrary $t_2$ can be taken arbitrarily close to $t_1$ and we could drop the integral sign.
Why isn't that the case?