Question: why lcd command is used?
Answer: A command is an instruction given to LCD to do a predefined task. Examples like initializing it, clearing its screen, setting the cursor position, controlling display etc.