why do the magnetic field lines originate from south pole and go to north pole inside a bar magnet?
Its just the opposite. Magnetic field lines originate from the north pole and end at the south pole. This is an inherent property of every magnetic substance, widely known but not entirely understood.