Coaching hires are a crapshoot and Xavi doesn't have much of a record to go on. But he's Xavi. So, sure, why wouldn't Barcelona give him a shot? Maybe he'll turn out like his old boss Pep, or like Simeone.
Real Madrid have some healing to do, Barcelona are hard up for cash, and Atleti simply need to prep for the season.