It has nothing to do with rules. In the past editions some classes roleplayed for you (paladin, druid). That's gone now.

The important thing is allowing as much player agency as possible. A dm shouldn't tell me how my character feels any more than he should tell me what my character does. This is railroading.