Let me add that there are several possible reasons as to why the combined ticket can be more expensive or cheaper than two separate tickets, such as demand differentials, competition, or agreements between airlines where one airline buys seats in bulk from another airline.
Note however that if you book the flights on separate tickets, you will not be protected if a flight is late and you miss the connection.