While the flashlight icon on the iPhone Lock Screen is handy, the camera button is redundant, as you can simply launch the camera by swiping left on the Lock Screen. So, if you want to remove or switch these default buttons for some other feature, you have the option to do that.
How to remove or replace the flashlight and camera icons on iPhone Lock Screen