by chance
They met by chance.
They discovered a room full of candies by chance.
He was able to open the secret door by chance.
interj 1
not planned by anyone