It won't necessarily. Double clicking the window header is the green button of yore where apps maximize to the space they feel they need which may or may not be the space below the menu bar. Chrome will fill the space but Safari will just do website width + length.
Agreed snapping would be nice. Windows does this well out of the box. MacOS leaves way too much quality of life to third party apps.