He's making her feel confident and desirable. Finally, she has qualities other than being the brainy one, the third wheel behind Harry and Ron. Malfoy makes her feel important in her own right; important to him. Sexy and perfect.