A referee may well refrain from awarding a no cost kick or penalty as a way to give advantage towards the attacking group. A player might be sent off for "lousy or violent language to a Referee".
A referee in fencing https://netneutralreviews.com/category/football-cards/