To be clear, Twitter also shares the list of users who like a post, and people generally seem to view this as a good feature rather than an invasive one, so it makes sense that Mastodon implemented it as well.
lemmy does not make it in any way clear that upvotes and downvotes are public information.