The compass may have indirectly lead to our understanding of electromagnetism, which eventually helped inform our understanding of atoms and subatomic particles?
I'm wildly speculating but that's the best connection I can make.
ChatGPT said the same thing. The closest Iink I could get was electromagnetism being an important component of nuclear physics which followed the invention of the compass