It wasn’t any secret or speculation that he was getting primaried. Kelli Ward announced she was going to challenge for his seat back in 2016, pretty much right after she lost against McCain. Trump praised her last year, she shot up in polls, and Flake saw the writing on the wall.