Latin rōs marīnus reads as sea dew. Through French and earlier English forms, the name was reshaped into the familiar rosemary spelling.
The source notes that Latin rōs here may reflect Greek rhoûs, sumac. Only the literal Latin meanings are scored, not a certain ultimate origin.
Sources
- Merriam-Webster: rosemary
Word History explains the literal Latin reading, English alteration and possible Greek background.
- Online Etymology Dictionary: marine
marine is from Old French marin and directly from Latin marinus, "of the sea"