See screenshots - on the first tick the rail is placed, it isn't pointing into the other rail that it could be attached to. This behaviour is inconsistent with certain other behaviours, as blocks like fences immediately connect to other fences when placed, and redstone components placed to a power source will be immediately powered.
Still able to reproduce in 19w42a, the rail just fixes itself much faster.