Why did Anna Akhmatova's son go to prison?

Because of his mother's writing it was taken out on him to try and stop her from writing.