The eye is a complex and delicate structure. When light enters your pupil it gets focused through a lens before hitting your retina. There are unique cells in your retina that convert light into electrical signals that are sent to the brain via the optic nerve.
Even slight damage to these complex systems can lead to vision problems. Often, vision issues get progressively worse as we age due to various health conditions.
Seeing yellow spots can range from normal to a medical emergency. See the below article, which looks at some of the potential causes.