Upvote:2
Well from the Chinese version of the Wikipedia page indicates that the crown prince tried lots of measures with his younger brother to put Shimin in an unfavourable situation. Therefore, the assassination can be regarded as a sort of revenge.