by accident

by ˈaccident

in a way that is not planned or organized: We met by accident at the airport.Helen got into acting purely by accident.
See also: accident