Burma 's military government says it is releasing nearly 4,000 prisoners who had been wrongly jailed .