Question: why kaaba is cube shaped?
Answer: When it was rebuilt a little while before Mohammed (Peace be upon him) became a prophet, there wasn't enough money to build it back in it's original shape so it was decided to rebuild it as a cube and build an additional wall around the area that the original shape covered. The Kaaba was not always cube shaped.