Most of the amenities you speak of are not available at community colleges, which have seen the biggest decline. The pandemic definitely figures into this, but I don't think amenities can account for the large decline in certificate and vocational training this represents.
Community college has also gotten really expensive. I was looking at the price for my alma matter, tuition has more than doubled since I graduated in 2010. The price has gone up faster than my university’s tuition, making the community college less competitive. I wouldn’t be surprised if economics also is contributing to declining community college enrollment.