No, this is definitely a COVID scenario. There have been spot checks in the past because of the high number of refugees but this was back in 2015 or 16. Took a sleeper in February this year, crossed four borders, no checks at all.
Spot checks happened all the time. I had my passport checked once crossing from Austria to Italy on a train, in 2003.