I didn't think that the club didn't think of keeping Marchisio. But we don't know what the conversations between him and the club were.
If we didn't want to spend his last few years being used as a 6th choice midfielder, then it was the right thing to release him rather than keeping him...