iOS has had this feature for several versions now, I think it predates focus modes even. But today it lives under that umbrella as the Driving focus, which can activate automatically based on certain kinds of detected motion.