Cabins have different grades, even if they are identical in style and size, depending on where they are situated. Cabins midship are the most expensive, followed by Mid Aft/Mid forward and the lowest priced are Forward or Aft cabins. There are sometimes other reasons (eg deck) for different prices but this is the main one.