This is something specific to photographing LEDs. Most LEDs aren't on all the time, but are in fact flashing extremely rapidly. The ratio of on/off time (the duty cycle) can be used to control the perceived brightness of the LED. The camera you are using has a rolling shutter. When your camera takes a photo, it actually scans the image from top to bottom (or in this case horizontally) over time, rather than taking the whole picture at once*. The process is extremely quick, but in this case still too slow to hide the normally imperceptible flashing.
Your phone is fine and is working normally. It also has nothing to do with the fact that this is a macro shot.
*Cameras which -can- do this are said to have a global shutter. They're very expensive and are used for high-end digital video (movie cameras and the like).