The simplest structure is a certain amount of seats at each price. For example say they have 8 seats at each price, so every 8 bookings the price goes up.
However it is not as simple as that - airlines use very very sophisticated systems to manage yields. Like nivsy said, they calculate flight demand, i.e. midweek, weekend, morning evening - if a flight is low demand it will have more cheaper seats. Also, as it becomes nearer the date of the flight the price can increase.
Some airlines systems continually monitor demand. If a particular flight gets a lot of booking inquiries on the site, then the price will go up as the system will think there is high demand. So if your thinking of booking a flight don't keep going back and quoting it over and over as you may push the price up!
In simple terms, your Mallorca flight probably has high demand or is now fairly full, whereas your Murcia probably isnt filling up as quick or in demand as much.