I heard that back in the days, people used to just go when their work was done on the farms and there was no concept of 9-5 (these days seem 24 hours work). There used to be a lot of holidays. Is that true? If it is, then given the abundance in technology, why our work hours increased and why do we have such weird lives that we live to work?


Because living is more expensive now than before. In medieval times, you had a 30m² wooden house on your farm that you probably built yourself, no heater, no car, no brand clothes, no washing machine, no electricity at all, no water pipes, etc.
Because when you work on a farm for yourself, you keep 100% of your work. When you work for a company, it keeps most of your work for itself and gives you some compensation in return that depends on a combination of “how much do you need for living” and “how easily could you find another job”.