By serendipity; by blind luck in combination with wisdom; by fortunate accident.
Without awareness, without intent.