You're right, the "t" is silent in the word "depot". The answer to why is that English spelling and pronunciation make exceptionally little sense^^ And English also draws from a lot of other languages. "depot" comes from French, where the "t" is silent. Some other words originating from French like this are:
ballet
buffet
chalet
crochet
gourmet
valet
debut