Let's take Post Bar, そんなにししてたんだ and そんな as examples. This sentence is usually used when expectations fail. Expectation happened in the past, so here is the past tense. た is the past tense, and adding んだ will make you feel more feminine or more disappointed and pitiful.