By adding +다 보니 to a verb stem, we indicate that while one thing happens, a second thing also occurs. That is, while doing or being V.
열심히 공부하다 보니 날이 어두워졌어요.
It got dark while I was studying hard.
좋아하는 일하다 보니 스트레스도 없어요.
I’m not stressed while doing work I like.
한잔하다 보니, 취했어요.
While drinking, I became drunk.