As like in windows or lynux there is no right click rename option in Mac to rename a file.
Inorder to rename a file in Mac,
First click on the file and then hit Enter/Return key in your keyboard. Then the file name will be editable.
Name the file as you would like.
Then hit Enter key to save the file in that name.