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.

At least 73 injured after Houthi rebels attack Saudi civilian and energy facilities
Nepal rescue focused on workers trapped in three tunnels
Indonesia reopens Jakarta airport, four others after Anak Krakatau ash clears
Russia hits Kyiv after brief pause for US envoys' visit, killing two
Kenya offers temporary amnesty to undocumented East Africans amid crackdown fears
