Trains used to be the same here (with the exception that you could always take your bike on the train during peak hours in the non-peak direction, it was only peak direction that was banned), until they were trying to get people back on public transport after/late during the pandemic. Then they started allowing it even in peak hours, with some weird limitations like a maximum of 2 bikes per car, and only in the first or last car of the train.
My city has bike racks on the front of buses. Bikes can go on trains but not during peak commuting times.
Trains used to be the same here (with the exception that you could always take your bike on the train during peak hours in the non-peak direction, it was only peak direction that was banned), until they were trying to get people back on public transport after/late during the pandemic. Then they started allowing it even in peak hours, with some weird limitations like a maximum of 2 bikes per car, and only in the first or last car of the train.