The Earth is shaped like a geoid, similar to a sphere slightly flattened at the poles, and the shortest route between two points on it is an arc of a great circle — a circle that shares the Earth’s center, like the equator. It’s the line a tightly stretched string would mark between two cities on a globe: for someone traveling along it, the direction is always straight ahead, without turning. But when the Earth’s curved surface is projected onto a flat map, that same route appears bent toward the nearer pole, and the straight line on the map that seems the shortest path is actually longer.
That is why flights between North America and Europe often pass near Greenland, and flights between East Asia and North America often pass near Alaska. On the map the route looks longer; on Earth, it is the shortest.
The Mercator map straight line follows a constant heading, the so-called rhumb line, used in older navigation because you only had to keep the same compass direction. Over long distances, it can be much longer than the shortest path.