I didn't do any steriods, because a friend of mine went from "pillsbury doughboy" (his assessment) to very jacked in about 9 months. He used steroids, and was shocked to find he'd lost a couple inches in height. The doc told him it was the steroids, and even worse, he'd still lose the usual height when he aged (we all shrink as we age).
He was pretty bummed about it, but still became very popular with the ladies and was happy about that.
The things people believe constantly amaze me. Steroids don't make people shrink.
https://www.wsj.com/articles/SB10001424053111904194604576580...
Googling "do people get shorter as they age steroids" yields many more references to this.
He took a lot of steroids (I don't know which ones), his doctor told him that was the cause, and nothing else accounted for it. Anyone considering steroids should consult with a physician first. Me, I wasn't willing to take the risk.
It's an anecdote and third-hand information, at best. Maybe OP misremembered something. Maybe the doctor was wrong or simply trying to convince the guy to stop using steroids. Maybe the guy lied about what really happened to protect their medical privacy.
None of us is in any position to determine what really happened. Facts as I understand them:
OP chose to not use steroids themselves because of scary story from person they knew.
Everything else is damn near wild conjecture as to "what really happened."