I don‘t know I’ve never taken a Chemistry of Physics. i though there was a reason being most beer is filled an inch below the cap.
Have you ever toured a commercial brewery that bottles and watched them filling the bottles. I suspect that inch of space is to keep the bottles from spilling until they can get the cap on.
If you want to hear something quite different, try filling bottles half way and then capping them. It won't be a quiet phffft when you open one.