This is intended behaviour.
The output of SNAP always needs to be a rectangular raster. That’s why you get the bounding box of the shapefile.
What @Braun said is not done automatically if just the subset operator is used.
But you can use the Import Vector and Land-Sea-Mask operators to mask the outer region.
This post might help: