There are mixed reasons why people join the military, and the branches and different fields tend to draw different types. Some have reasons beyond what you described. Believe it or not there are people who join, because they do feel like they should serve their country. Others who see it as the ultimate challenge for them. Particularly Marines. Most I know join for a combination of reasons.
You have to admit that there can be a great deal of sacrifice in serving, depending on the MOS. Most aren’t willing to do what they do.