It’s up to the application developer to implement this correctly, so if it is inconsistent, that’s technically not Apple’s fault.
For applications that does not support this, the fallback is just to fill the screen, a bit like maximise does on Windows.
In more recent macOS releases, the new(er) full screen mode works more like maximise does on Windows, and has now taken over the green button on the menu bar for most apps, so the old zoom feature is more obscure than ever.