This could work through group selection - on average, groups containing more intelligent individuals would outcompete groups not containing them. However, this requires a scenario with group competition, and probably also requires substantially more time than individual selection for the dynamic to play out.