One 2004 R-rated movie, The Passion of the Christ, holds an incredible box office record that may never be beaten. Studios tend to avoid making R-rated movies, as a film being branded with the MPAA rating immediately slashes its box office potential. As a result, studios are typically of conscious of a film's rating during production, which can lead to some movies purposely avoiding gory scenes and heavy use of profanity. However, a number of movies have been able to escape the stigma that comes with an R-rating.
https://screenrant.com/hollywood-not-make-r-rated-passion-christ-box-off-record/