Default [Q] ROMS How?

Roms. Whenever you look at it's description it says that it's based on stability, performance, battery life, etc. How do the developer make it based on so much things? Like, is it all because of the kernel? And if it is could you make a kernel in windows?