Questions & Answers about Это была глупость.
In this pattern, это был / была / было ..., the past-tense form matches the noun that names what это refers to.
Here that noun is глупость, and глупость is feminine singular, so Russian uses была.
- Это была глупость. = That was a foolish thing / That was stupidity.
- Это было письмо. = That was a letter.
(письмо is neuter, so было)
So была is chosen because of глупость, not because of это.
Because это here is a standalone word meaning something like this / that / it, not an adjective directly modifying глупость.
Compare:
- Это была глупость. = That was a foolish thing.
- Эта глупость... = This foolish thing / this nonsense...
In эта глупость, эта agrees with the feminine noun глупость.
But in Это была глупость, это does not agree with глупость in that way. It points to a situation, action, statement, or thing.