There were some bedouins who reverted to Islam at the time of the Prophet (SAW) and they were not used to city life or the etiquette of Islam so when they went to visit him, instead of addressing him in a proper way, they called him Muhammad. Allah (SWT) never called our Prophet “ya Muhammad” He had that much respect for him. He sent down an aya to highlight how we should respect our beloved Prophet.