The cameras on mobile phones are made so that they can take good pictures even when there isn't much light. Many phones also come with night mode options and other features to help improve image quality in darker environments.