Most electronic gadgets are designed to interface with humans in some fashion. We humans are very abusive to most electronic devices. We drop them, poke them, open and close them, and in general feed stuff into and out of them tactilely.
It is well understood that a through-hole connection to the PCB is better mechanically than most SMT connections.
The strength of the bond that holds a surface mount component to the PCB is limited to the strength of the glue that holds the copper pad to the surface of the laminate. As parts get smaller, so does the amount of glue under the ever decreasing copper pad size and thus the strength of the bond.
As long as we humans have to touch it, switches, connectors and other mechanical devices are better attached to the circuit boards with through-hole connections. This is also true for devices which may encounter high forces, such as those used in rough service environments like military and aerospace, not to mention automotive.
The parts are more likely to stay on the board if through-hole, and when stuff has to keep working under extreme accelerations, like lift-off, explosions or auto accidents, you don’t want connectors falling of the boards.
So until the electronics can interface with our brains without needing to be touched, poked, or just held, through-hole parts will still be with us. And for high reliability assemblies, a certain amount of parts will still need to be better secured to the board using the strength of the through-hole connection.