She is not stupid, announcing as a candidate will shield her from prosecution in case the DOJ were ever to make noises about it.
I think you are right, though, legal strategy aside she sees a good chance to steal an election, especially if a couple of Trump associates and family members end up in prison.