Patterns are repetition of Shapes or Textures that are organized in a rhythmic way.
If you carefully look for patterns there are everywhere in nature and also in man-made things. By using these patterns you can compose a visually compelling photograph/image that keeps the viewer engaged.
Sometimes breaking this harmony or rhythm in pattern provides a much better results by creating a dynamic composition.