I guess I was just thinking of rails very clear MVC pattern. Wordpress doesn't have this at all. Instead they have "the loop" which just ends up being a mess.
Yeah, Rails is one of many recent MVC patterned frameworks. It wasn't the first, and it won't be the last.
WP was created in a time where I think switches were used more.
Personally I find the MVC paradigm to apply to web apps easier, but there was a time when web apps maybe weren't so complex, and WP was around a long time ago.
Still, nothing provides a compelling ecosystem as Wordpress out there, so we can say the language, coding style seems to only matter so much in the end.