Hi,
please when asking questions like this be more specific / share the code in text form to be checked easier.
I have created the attached notebook which creates a random catalogue in a rectangle and calculates smoothed seismicity rates from it.
I do not see any way how the source zone polygon affects your smoothed seismicity - maybe you have just events inside the polygon,
but the smoothed seismicity "does not know" about that and simply, where there are no events nearby, the rates will be zero and not in the output: