A star has never been considered bad, in fact a star is quite amazing and we awe at the stars.
It's not literal - you are not a star! But the expression is a way of expressing how the person is in awe of your positive deed.
I use that expression a lot. I also like to say "you are an angel" or "you are a gem". They are very positive icons that make people happy.