iMac System Preferences
This has been happening to me recently and I believe it is Apple reminding you (over and over and over and over....) to set up two factor authentication in iCloud. On my Mac (High Sierra 10.13.4) it eventually stopped asking me.

But to get to System Preferences and out of the iCloud Pref pane click on the button that looks like a grid of dots, as below.