Why There Is a Difference In Behaviour For Copying Contents In Primitive and Non Primitive Data Type?

Primitive Data types

Composite Data Types

So now arises a question, Why there is difference in behaviour of copying between these two data types?

Fig(1)
Fig(2)

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store