NBA officiating continues to be confusing

So instead of a 105-102 game with a free throw coming up for the Raptors to cut into the lead, somehow, someway, Kyle Lowry was called for an offensive foul.

Can someone explain this to me? His shooting motion was a normal motion and he did not appear to stick his leg out intentionally to draw contact.

And of course with a BS call, such a reaction is warranted. Giving him a technical for that is ridiculous. Lowry knows the officials are out to get him. This is embarrassing.