If someone happens to do something, he or she does it by chance.
I happened to meet some new friends at school today.
Example picture