In a lot of cases, the lack of an actual automated barrier is just down to budget & maintenance costs. The sparse communities can’t afford to pay to install them or maintain them, and there are too many train crossings that are too spread out rurally for the state to maintain them. If one of them malfunctioned there could be lawsuits, or it could block road traffic on critical county roads where the nearest possible alternate route might be tens of miles away, and the road is needed for school buses, emergencg vehicles, snow removal, etc.
So in total these communities just accept the risk because it’s logistically intractable otherwise.
Although, I wonder whether US railway crossings can be hard to see at night.
Is it really that hard for the railways to fix this problem with better modern automated gates?
(I'm in the US)
Many don't have lights.