Hi! There is a reason for that:
When there is no opponent in the way, there is virtually no difference between a path like the one on your screenshot and a more direct one, so the game calculates automatically the most efficient one. In the situation you shared, the player could want to do that on purpose to make the opponent tackle you automatically (for example if the chances of dribbling are high you might want to do that so the opponent gets stunned and out of the way), so the game can't assume you want to use the shortest way to move to that square.
Cheers!