It's not theft, it's copyright infringement and is very morally and practically different from theft.
The range of circumstances in which it is morally acceptable are MUCH broader.
The range of circumstances in which it is morally acceptable are MUCH broader.
All that to say that in some circumstances taking source code is considered theft.
(Also, if it was theft this particular example would be theft in the same way that taking a book from someone's recycling bin would be theft: no one is worse off)