Bayern had the chance to get him - and get him that cheap - because he did not have the required matches/minutes he should have had according to his contract. Somebody at Barca failed to notice that or did not care...
For us Bavarians he is mainly our legend as he spend the longest and best...