There are many places across NA where land owners sold a bill of goods to home owners that that RR track was going to be remove down the road to the point some were, but are now being reinstall.
Over the decades, the number of RR companies have decrease with mergers to the point some lines were abandon to help the bottom line and improve service, but are being rebuilt since there is too much traffic on those other lines due to the increase of traffic. Some of those mainlines have gone from 1 track to 4 track and still need more, but no room for those extra tracks.
Some of the the corridors were held in trust as land bank for future transit use, with some have path built on them. In Maryland, one of these path is to become the Purple LRT line that saw many lawsuits to stop it including one where judge allow the suite even though his wife was part of the suite. In the end, the line is being built. There are a few more like this in the last 10 years.
Real Estates agents goal is to sell a house and some either fail to tell buyers what around them or tell them something untrue, where the home owner is caught holding the bag in the end.
Based on various land grants RR where given to build tracks, they got people to build their homes next to the tracks so they could have access to trains, but that change over the decades as stops were removed and became longer and longer between them.
The cities and towns has allow homes to be built next to RR corridor as industries die to generate tax money and think nothing about the noise on home owner and this includes schools.
Today, its buyer be aware and do your homework to see what next to you and around you and if you don't, you have no rights to bitch about those surprises and noise.
There are large number of places removing bells and horns of train for quite zone today, as long there are flashing lights and gates at the crossing.