The Jedi are so needlessly neglectful towards Anakin in their attempt to try to teach him to be emotionally detached, and then they wonder why he became loyal to the only guy who would actually listen to him (even if it was just to use him).
The Jedi: Emotionally neglect Anakin for years
Anakin turns on them
The Jedi: ...