This is probably intentional, the iMac is automatically trying to isolate background noise from your voice. In the 2017 iMacs, there is now only one microphone compared with the two in previous generation iMacs. Therefore, the noise isolation is more dependent on software, which is likely what you are noticing.
(On a separate note, if you are wanting to include system audio in your screencasts, you can achieve this by capturing the system audio and editing it into your screencast, or you can make the system audio become a system sound input, which your screencasting software can then use as its sound input, using software such as Loopback or Soundflower.)