'〜ことに': Fronted Emotional Emphasis ('To My Surprise / Fortunately / Sadly')
[Emotion Adj / Verb Ta-form] + ことに (Fronting speaker's emotional reaction)
'〜ことに' is placed at the beginning of a clause to frontload the speaker's emotional reaction to a subsequent factual event ('to my surprise...', 'fortunately...', 'regrettably...').
⚠ Note: Common emotional collocations: 驚いたことに (to my surprise), うれしいことに (happily / fortunately), 残念なことに (regrettably), 悲しいことに (sadly).
驚いたことに、彼らは双子だった。
To my surprise, they were actually identical twins.
うれしいことに、全員が無事に試験に合格した。
To our great joy, every single one of us passed the exam safely.