For me, crossdressing in secret was something I did while I was figuring out who I was. During that time I
never thought I would go out. In fact, I started small with underwear and each time I looked at people who went further I'd think "those folks really take it too far." But then I'd eventually get to where they were and I'd find it made me happier, so I figured I stop there and the folks who went further than that were really taking it too far. And it went on like that in dribs and drabs (no pun) until one day I did the whole thing -- full outfit, full makeup, good-ish wig and I looked in a mirror and received the shock of my life -- there was the person I had always been looking for when I looked in a mirror but never (up to that moment) had seen. That revealed a fundamental truth to me and changed my cost/benefit calculation.
Once I knew that truth about myself, then NOT showing that person felt like lying. And the weight of constant lying was dragging me down. At that point, I had to start going out and loudly proclaiming (albeit in non-verbal terms) my truth. Later events moved me to transition, but it was the same impetus -- I needed to show the real me to the world. I could not go to my grave with the lie.
So, initially and for many years, I crossdressed with no intention to ever go out. My impetus was simply to be happy. And until I discovered the new truth about myself I didn't really have a lot of conflict about that. When things changed, I changed too.