IP address has been blocked by SSH

Yesterday my Synology reported me that an attempt had been made to get into the Terminal (SSH) and I was shocked. How did they get on my network in the first place. I started investigating the issue. At first I thought I was really hacked but this was not the case....