Paint and primer are chemically different. They have different compositions.
Primer is gluey and adheres to surfaces easily whereas normal paint does not stick to surfaces easily. Primers’ primary purpose is to act as a bonder for the finish coat so the finish coat won’t peel.