Many of us do it different ways for different reasons. To me, the only important criteria is when you let them out in the morning. Other than that, everything is personal preference.
Chickens cannot see in the dark. Unless you have a light on in your coop, they cannot see to eat or drink in the dark, so keeping food or water in the coop so they can eat or drink in the dark is a non-issue. It is not going to happen. I think it is important to a chicken's health that they get several hours of darkness at night to completely unwind. Thy need their sleep as much as I do.
When chickens wake up, they are hungry. During the night, they digest the food that was in their crop, their crop is empty, so they want to put something in it as soon as they wake up. They are also thirsty, but with mine the food comes first. If you let them out within an hour or so of them waking up, then I don't think it matters if the food or water is in the coop or only in the run. If you are going to leave them locked up for a few hours, I think food and water should be available in the coop. Although mine go for the food first, I think it is more important for them to have water available. They can eat enough to make up for being just a bit hungry, but I believe water is more important for their health.
Some reasons to feed or water in the coop.
It is available when they wake up.
If you keep them locked up during the day, it is available to them. This one is pretty obvious.
Many people feel they are feeding the wiild birds less if they feed in the coop.
The feed needs to stay dry. That may be easier in the coop.
If you are in a really cold climate, it may be easier to keep water not frozen inside the coop.
Some reasons to feed and water in the run.
Water spills. That is not as big a problem in the run.
Chickens spill feed. This spilled feed and feed in the feeders will attract rodents. Do you want rodents in your coop or in your run?
Gritsar mentioned water possibly attracting snakes. Where do you want them, if that is a potential problem.
Chickens poop a lot. They willl hang out and poop more wherever the food and water is. Poop is usually easier to manage in the run than in the coop.
Chickens spill feed. It may be easier for them to clean up spilled food in the run than in the coop, depending on your bedding material. Of course, chickens scratch for spilled feed. If it is in the coop, they may keep the bedding scratched up so the poop is mixed up better. It might keep you from raking it as much.
I use solar heating to keep my water thawed in the winter, keeping it in a black rubber bowl set in the sun. The sun does not shine in the coop.
I'm sure there are other reasons but I can't think of any. By the way, I do both. I don't always let them out real early, but I find mine eat the food and drink the water in the run instead of in the coop when they have a choice.
Good luck!