This is not a bug.
As part of the process of casting a spell, you move the object from its current zone to the stack. As far as the game is concerned, your Triarch Praetorian entered the battlefield from the stack, not the graveyard.
CR601.2. To cast a spell is to take it from where it is...