Poor movements patterns and tight muscles. For example if you have extremely tight lats and pecs those muscles are pulling your shoulders forward. Secondly "movement pattern" for example if you grew up playing basketball where your arms are used to going forward when shooting a basket. It's difficult to retrain your shoulders to get your arms in line with your ears. The most effective mobility technique I have seen to retrain this is PAILS/RAILS discussed earlier.