Japanese monks and emperors kept meticulous records of cherry blossom festivals for 1,200 years. They accidentally built the world's longest climate dataset

https://sh.itjust.works/post/57803561

It’s there a difference in tone or meaning between accidentally and inadvertently? I feel like accidentally means they did something that was a bad thing.
Depends on who you ask.
I’m asking someone who has insight 😅