Which school is that?
I guess that's probably true of primary or middle / lower secondary school, but I don't feel like regurgitation of facts was particularly endorsed in my experience at upper secondary level, let alone at university level.
There might of course be quite a bit of variation between countries, schools and even individual teachers in this.