Apple has been in being patent wars since the beginning of the year. It started of with Nokia but then later moved to Samsung. There still is an investigation going on about the previous patent suit, Apple just added more for Samsung to battle with.
Both devices above had similar buttons and mostly the same OS, the packaging is also the same in some cases. Apple earlier said that Samsung are “slavish” copiers of there devices.