Ratings provide as a feedback from the user regarding their opinions and experiences, and can allow the user to submit a rating of their own, for eg. in an ecommerce website.
Rating stars are used to get feedback from the user in form of stars depending on the user experience with a product. Higher the number of stars, means positive feedback and vice-versa, as shown below.