Academia don't only train people for academia for the simple reason that there's clearly not enough academic jobs for all of the students who come through.
And the teachers and professors know that.
Here's one CS department which explicitly states how they can help students improve their career changes in the professional world, quoting https://cse.unl.edu/focus-areas :
> The Department of Computer Science and Engineering at the University of Nebraska-Lincoln introduces Focus Areas for its Computer Science and Computer Engineering majors. The goal of the Department is to equip our graduates with advanced skills focused in specific areas to better position them for successful careers. In today’s professional world, computing and computational problem solving skills are ubiquitously in demand in a host of advanced technology and scientific applications.
And they are far from unique. Here's an English department, quoting https://www.saddleback.edu/la/english-department :
> Of course, the first thing people imagine when they think of getting an English degree is teaching high school. Teaching is certainly a noble profession, but there are many career paths one can pursue with an English degree outside of teaching due to the excellent training provided in this field.
Emphasis mine in both quotes.