That is a feature, not a bug.
See the last line in the help information:
$ bedtools bedtobam -h
Tool: bedtools bedtobam (aka bedToBam)
Version: v2.16.2
Summary: Converts feature records to BAM format.
Usage: bedtools bedtobam [OPTIONS] -i <bed/gff/vcf> -g <genome>
Options:
-mapq Set the mappinq quality for the BAM records.
(INT) Default: 255
-bed12 The BED file is in BED12 format. The BAM CIGAR
string will reflect BED "blocks".
-ubam Write uncompressed BAM output. Default writes compressed BAM.
Notes:
(1) BED files must be at least BED4 to create BAM (needs name field).
Ivan
Ivan Gregoretti, PhD