Is there some setting to prevent this from happening?
No.
I suppose I can just put the computer to sleep if I
just want to lock the computer, but there are
instances where logging out and back in are
preferrable and its a real pain to lose open apps.
Describe one, please. If your concern is that some random third-party can access the machine, then it should be requiring a password when woken from sleep.
Perhaps this is just my PC experience with logging
behavior casting a shadow, but it does seem contrary
to what I would expect.
"PC experience?" Please describe a circumstance on a PC under Windows whereby you can log off, and applications yet not close?
I'm not shutting down the
compuer, so why are all the apps closing?
Why wouldn't they? You're logging off. Your user context is going away.
Any ideas?
Not broken. Behavior is by design in both Windows and MacOS.