Nobody knows why dreams occur, some think its wish-fulfillment, some random connections some think you can 'pre-program' your dreams. If you dream something and it happens, that's great (you didn't says 'nightmares') ! Most do not remember dreams, they are very "nebulous".
Then maybe someone is shpowing you what happens in reality through your dreams or someone is waiting to know your dream and then makes them become real. Maybe someone is trying to play with your mind. In any case, I dont think there s anything you can do about it, but God can. Gby