They are set by lightning node operators on the channels they have open. You can dynamically set it to tell the network what you are willing to route at what fee. It can be fixed or percentage based. I recommend zero base fee + percentage of your choice.