I feel like I get comfortable easier around woman that are not attractive to me but I come out needy in front of attractive women. Anyone could explain why this happens?

Edit: thanks for all the reply guys, let me know if you guys have any advice on how I should feel more comfortable.