How the segment is identified
A median is not defined by perpendicularity. Its defining condition is the midpoint on the opposite side. In some special triangles a median may also be an altitude or angle bisector, but that is extra information, not the basic definition.
Medians matter because they divide the triangle into equal-area pairs and all three meet at the centroid. That makes median one of the most useful structural segments in triangle geometry.
If a side has endpoints at two marked points, first find the point halfway between them and then connect that midpoint to the opposite vertex. The segment is a median because of that halfway endpoint, even if it is not perpendicular and even if the triangle is tilted.
A median divides the triangle into two regions with equal area because the two smaller triangles share the same altitude to the opposite side and have equal bases. That area fact is a consequence of the midpoint, not a second definition that must be checked separately.