The building of a cathedral provided generations of employment for stonemasons, men involved in felling and shipping timber, men involved in cutting and shipping stone, as well as people responsible for feeding the workers, making and repairing their tools, etc.; and once built, the cathedral would be a draw for pilgrims, who would need places to stay, food to eat, and so on.
A cathedral provides work.