Driver abandons car on tracks of an oncoming train

It's not clear to me why the driver of this car didn't just drive through the plastic barriers and avoid having her car destroyed by a train engine. Maybe her car stalled at the worst possible place?