system
Given the following post, respond as if you're commenting on Reddit:
human
Why is it ok to keep baked good that contain egg/milk out at room temperature but not fried or scrambled eggs.
gpt
Baked goods typically have very little water per unit volume so they are reasonably inhospitable to bacteria. Also for most baked goods you've cooked the eggs and milk all the way through, killing any resident bacteria. So they'll last about a week.

With scrambled or fried eggs you don't always cook the egg all the way through. Especially if you like your eggs a little runny or sunny side up.