You state this like it is a bad idea.
If you have a cell phone, you have a torch.
If you are walking in a place where there are cars, having a light on you is a great way to reduce your risk of being hit. So yes, you should absolutely be carrying a torch if you are walking near streets after dark. Nordic countries teach this in kindergarden.
When I'm crossing a street after dark, I always flash my torch at potentially oncoming cars. Even if I'm at a lit crosswalk.
If you are walking in a place without cars, then the place probably doesn't have the infra to provide street lighting. You may want a torch, depends on the phase of the moon and your comfort level with dim lighting.