겠거니 하다 is used to show that a logical assumption has been made.
It can be used in the beginning of a sentence to show that one did something based off this assumption
다른 팀원들이 지정된 일을 하겠거니 하고 퇴근했는데 다음 날에 출근했더니 아무것도 안 했더라고요.
I left work thinking the other team members would do their parts but went I in the next day I found out they didn’t do anything.
It can also be used at or near the end of the sentence to show that based off some observations you made some assumption.
음악계 전문가들에게 큰 극찬을 받은 앨범이라 좋겠거니 했어요.
Since the album was highly acclaimed by industry experts, I assumed it would be good.
첫 번째 책이 좋아서 두번째 책도 좋겠거니 했는데 별로였어요.
I assumed that I would like the second book as well since I liked the first one but it wasn’t all that good.