
Jesse E. answered 07/05/19
Experienced Biochemistry Tutor
The answer lies with the number of intermolecular forces between nonpolar compounds. As you may know, these intermolecular forces are called as London dispersion forces( Another force is dipole-dipole interactions which is for molecules with pernament dipole. To simplify the answer, I will only focus on the nonpolar intermolecular forces. A reference will be included in comments if you want more information).
In nonpolar compounds, temporary fluctuations in electron distribution within nonpolar molecules in the solid state results in formation of short-lived instantaneous dipole moments. These instantaneous dipole moments can induce nearby molecules and pull the electrons of the other molecule toward the molecule's positive end. The number of the temporary dipole-induced dipole interactions a molecule has is determined by its surface area.
For example, consider neopentane and n-pentane with boiling points 9.5°C and 36.1°C. Neopentane has the structure of a sphere whereas n-pentane is a straight chain. Therefore, n-pentane will be able to induce significantly more molecules than neopentane. Because more thermal energy will be needed to overcome these temporary attractive forces, the molecule with the most interactions will have a higher boiling point.

Jesse E.
https://chem.libretexts.org/Courses/Eastern_Wyoming_College/EWC%3A_Introductory_Chemistry_(Budhi)/12%3A_Liquids%2C_Solids%2C_and_Intermolecular_Forces/12.6%3A_Intermolecular_Forces%3A_Dispersion%2C_Dipole%E2%80%93Dipole%2C_Hydrogen_Bonding%2C_and_Ion-Dipole07/05/19