There are two categories of people who have sex in public. Those who get a thrill out of being watched, or the idea of being caught.
The first are simple exhibitionists. being watched is actually half of the fun.
The second group are not interested in being watched, but have a ‘screw you’ attitude to those who may not want to watch them going at it in the park whilst they are on a day out.