It's not the landlord stopping them.
If you rented/leased a car. And don't get to drive it much or even at all during these lockdowns. You don't get off the rental payments.
I think a better analogy would be..
If you signed a lease for an apartment to live in and the landlord said you have
to move out for 2 months to fix the roof because the govermnent has mandated special solar shingles, yet still wants those 2 months rent.
Uhhh no.