How can larger railroads just take over other railroads?!??!?!?!!

i have noticed a lot of railroads being “taken over”.[:0][:0][:0]
did they sell themselves or did the larger railroad eat them??[:0]

just wondering[:p]

Larger railroads simply take them over by buying them up at attractive prices so shareholders decide to sell their shares…

LC