[Here you'll get a very clear, and descriptive approach to your answer, so that you can have a strong foundation on the Concept of Relativity, which is important]
First you need to have a clear conception that, $Simultaneity$ $is$ $Not$ $Absolute$, and this $Simultaneity$ is defined on a certain $Inertial$ $Frame$, which might differ from other $Inertial$ $Frame$, and $loss$ $of$ $Simultaneity$ depends on observers, in such a way, that one might not agree the event of Simultaneity with other, but both being true. So the Simultaneity is real, but on certain $Inertial$ $Frame$.
Now, for such this example, that you're asking:
For the $Inertial$ $Frame$ $of$ $Reference$ on the train, w.r.t. the person B, the event of the Lightning, striking both the ends of the carriage, is $NOT$ $Simultaneous$, and $loss$ $of$ $Simultaneity$ is real here.
(The other part of this statement of yours is unclear, but i'm telling you something, which might clear your conception)
When we say two events to be $simultaneous$, we of course say that from a certain $Inertial$ $Frame$, and clearly in there, the light from two events, reach the observer's eye at the same time. But being in a restricted $Inertial$ $Frame$, one CANNOT say, any two events to be $simultaneous$, if light from both the events come to the observer at the different times.
(This is a good question clearly) If light didn't have the property that it has same velocity in all $Inertial$ $Frame$, then there would be a great o ambiguity of time, upon which any two events are primarily defined. Precisely,
$Considering$ $that$, light travels like all other velocities, and is not same in all $Inertial$ $Frame$, we have, for the $photon$, from the lightning at the $rear$ of the carriage, will have velocity $(c+v)$ $Towards$ $the$ $Passenger$ $B$ (who is at the middle of the train), as the train is moving in the forward direction. And for the $photon$, from the lightning at the $front$ $end$ of the carriage, will have velocity $(c-v)$ $Towards$ $the$ $Passenger$ $B$.
Taking $t_1$ to be the time for the $photon$ from $rear$ $end$, to reach $B$, and $t_2$ for the $photon$ from $front$ $end$ and the carriage distance to be $s$.
Now clearly, as the train is moving in front direction, for the $photon$ $from$ $rear$ $end$ we have:
$$\frac{s}{t_1} = V_{photon} + V_{train} \implies \frac{s}{t_1} = (c-v)+v \implies t_1 = \frac{s}{c}$$
$Since$ when the photon reaches the position, of B, from the rear end, the train have gone away $(V_{train}*t_1)$ amount of distance, and we need to compensate that.
Similarly for the $photon$ $from$ $the$ $front$ $end$ we have:
$$\frac{s}{t_2} = V_{photon} - V_{train} \implies \frac{s}{t_1} = (c+v)-v \implies t_2 = \frac{s}{c}$$
$Since$ when the photon reaches the position, of B, from the from end, the train have came near $(V_{train}*t_2)$ amount of distance, and we need to subtract that.
$Therefore$, $t_1 = t_2 \implies$ that, $Both$ $the$ $Events$ $are$ $Simultaneous$ $If$ $we$ $don't$ $consider$ $light$ $to$ $have$ $same$ $velocity$ $in$ $all$ $Inertial$ $Frames.$
$That$ $means$ $both$ $Maxwell$ $and$ $Newton$ $cannot$ $be$ $true$ $simultaneously$ $and$ $it$ $turned$ $out$ $that$ $Newton$ $fails$ $to$ $explain$ $These$ $events.$ And $Maxwell$ $Is$ $Correct$, that LIGHT NEEDS TO HAVE SAME VELOCITY IN ALL INERTIAL FRAMES.