Why do some sensors not record history?

I have a number of sensors that don’t record history, while others record fine. Is there some magic reason why certain types of sensors bypass history recording. Am I missing something really obvious here, or is it something specific to certain types of sensor?

Example, this sensor (defined by me) records data fine:
image

…but this sensor (defined by a custom integration) does not:
image

My recorder config is as follows:

recorder:
  db_url: mysql://user:pass@core-mariadb/homeassistant?charset=utf8
  auto_purge: true
  purge_keep_days: 30
  commit_interval: 10
  exclude:
    domains:
      - automation
      - updater
    entity_globs:
      - sensor.weather_*
      - sensor.tumble_dryer*
      - sensor.washing_machine*
      - media_player.*
    entities:
      - sun.sun # Don't record sun data
      - sensor.last_boot # Comes from 'systemmonitor' sensor platform
      - sensor.date
    event_types:
      - call_service # Don't record service calls

same here but without any additional recorder configuration