I think some computer makers sometimes install 8GB or more RAM to try to sell their slower computers with a slower Intel Celeron or Core i3 to less tech savvy users who may more likely buy a computer with 8GB of RAM instead of 4GB of RAM.
RAM does not cost much money these days where you can...