Churches did serve a very practical purpose though. They were gathering places and centers of socio-political power. Unlike the pyramids ordinary people could enter churches at any time. And for most churches were the only places were they were exposed to art and “higher” culture (by medieval standards).
From that perspective they are not particularly less practical than modern museums or most other public buildings.
The Egyptian pyramids lacked all of this.