"How did you end up there?" or "How did you get here?" are basically the same.
*just think of "end up" as a result or a consequence of something.
- After two weeks of traveling around Europe, we ended up in Paris. (Their final destination is in Paris after their two weeks travel in Europe.)
- The deals were popular at the time, but many ended up losing money. (Many people lose their money because of the deals that were popular before.)