To really, broadly generalize this, I'd say
1) experience (as a DM, and as a player)
2) approach to the game (combat simulator versus story, collaborative versus competitive, or some other combination)
I think players and DMs both have these traits, or can have these traits, but finding that...