How Do Freelancers Build Structure Without a Set Routine?

I’ve always been fascinated by how routines shape behavior something I’ve noticed a lot in my work as a security guard. People thrive on predictability, but freelancers seem to operate in a completely different world. Without a boss or a fixed schedule, how do you create that sense of structure for yourselves? Do you set specific hours, or is it more about hitting daily goals? I’m curious how you balance flexibility with productivity, especially when there’s no one looking over your shoulder. Any tips or strategies that have worked well for you?