I did a reset Safari, clear history, got rid of all the cookies. So far, it hasn't done it again. What it had downloaded were two files that I hadn't hit "download now" for. All I had done was open safari. I didn't recognize either file, so
I cleared the history. I had always applied all updates, so I guess it's okay. Thank you for your answer.