The snapping was originally only implemented for resizing nodes horizontally. But since frame nodes can be resized vertically, it makes sense to also allow snapping in that direction as well. Pull Request: https://projects.blender.org/blender/blender/pulls/137116