Well, when developing and testing it can be useful to send text strings and data from your program to your pc to check if everything is working as it should. Or else you can only hope the program is doing what you think it should be doing. If you only supply it with 5 volt power and run it on it’s own then you don’t have that feedback.