According to the prosecutor’s office, it's because they're accused of having links to the network of US-based cleric Fethullah Gulen.
Ankara says it was him who orchestrated a 2016 attempted coup.
Those who are facing jailtime include three colonels, eight majors and 10 lieutenants.

No evidence alleged Bondi gunmen received military training in Philippines
At least 12 killed in Nigeria mining site attack
UN, aid groups warn Gaza operations at risk from Israel impediments
Israel approves natural gas deal with Egypt, Netanyahu says
US approves $11.1 billion largest-ever arms package for Taiwan
Trump adds seven countries to full travel ban list
Indian parliament votes to allow private firms in nuclear power sector
Doctors in England start five-day walkout during flu surge
