BMI is mostly inaccurate for athletes as muscle weighs more than fat. You can have one individual that is 5'8 110 and has lean muscle VS an individual with little to no muscle tone and never exercises that is also the same weight due to simply undereating but their health could be dramatically different.
There are also people who are just more likely to be thin due to their genetics or body type (ectomorph). When a person who is naturally underweight with a healthy diet and moderate exercise picks up competitive running, running all those miles even with a good diet could result in them being even thinner but not drastically as unhealthy compared to other individuals.
For example, say you have someone who would normally be 5'8 and 160 pounds with a healthy diet and moderate exercise and has a mesomorph body type. This person could lose weight by undereating and exercising excessively and eventually get to 5'8 and 110. This person isn't normally at this weight, so to try to sustain this weight, they could put their body at risk for injuries and other complications.
For someone who is 5'8 and 160 with a sedentary lifestyle and then with a restrictive diet loses weight to get to 110 pounds... it would also be unhealthy for them if they would normally not weigh this much compared to if they were active and healthy.
You could also have someone who has always been underweight their entire life despite eating a healthy diet and exercising moderately. They could be 5'8 and 110 just like you and would normally be 115 when they aren't running high mileage for example. This person most likely not be as unhealthy and not be as injury prone as other individuals with the same BMI with the above examples because their size is mostly natural/genetic for them and not the result of excessive exercise or a calorie restrictive diet.
Everyone's body is different, if you feel pain or discomfort at the weight that you are, then you should gain weight. If you are feeling drained after workouts or feel like you aren't eating enough to feel FUELED and ENERGIZED then gaining weight could be good for you. If not, don't force yourself to gain weight that would be more of a stress or pain compared to gaining health and energy. Height, weight, bmi etc. are just numbers, focus on health and what makes your body feel healthy and strong when you run.