Foxconn has expanded its footprint into high-growth tech sectors like AI and EVs in recent years as its core electronics manufacturing business faces challenges due to industry shifts.