Initial development of clitoris and penis is identical, they get different later, nothing strange they share some characteristics. One of them is ability to change volume and stiffen when filled with blood. Sure, scale is different, but general idea and part of physiology are identical. No idea if erection is a correct word to describe the process in the case of clitoris.