They were originally conceived as a way for developers to get credit for the games they worked on.
https://www.kotaku.com.au/2020/04/10-best-gaming-easter-eggs/
origin - https://www.pipiscrew.com/2020/04/10-of-the-best-easter-eggs-in-video-games/ 10-of-the-best-easter-eggs-in-video-games