I don't remember what the situation was, if Hugh turned it down or if the director just decided to go in another direction.
I think the director knew Gosling personally and that's how that happened. But I did hear that Hugh was originally considered for the role.