CSES - Room Allocation

https://cses.fi/problemset/task/1164
In this problem, why do we sort by starting time? The classic scheduling problem usually has us schedule by the end time, so I find this slightly confusing.