> I'm not sure it's something that can be taught very well, though
Why ever not? You can study and discuss existing architectures, their advantages and disadvantages, discuss case studies of existing code and new requirements and what architecture to implement them in etc.
Of course, you also need some decent programming experience to come up with architectures that work in practice, but that can be also acquired.